Skip to content
Snippets Groups Projects
  • Yaron Keren's avatar
    9bd91b68
    Remove many superfluous SmallString::str() calls. · 9bd91b68
    Yaron Keren authored
    Now that SmallString is a first-class citizen, most SmallString::str()
    calls are not required. This patch removes a whole bunch of them, yet
    there are lots more.
    
    There are two use cases where str() is really needed:
    1) To use one of StringRef member functions which is not available in
    SmallString.
    2) To convert to std::string, as StringRef implicitly converts while 
    SmallString do not. We may wish to change this, but it may introduce
    ambiguity.
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232622 91177308-0d34-0410-b5e6-96231b3b80d8
    9bd91b68
    History
    Remove many superfluous SmallString::str() calls.
    Yaron Keren authored
    Now that SmallString is a first-class citizen, most SmallString::str()
    calls are not required. This patch removes a whole bunch of them, yet
    there are lots more.
    
    There are two use cases where str() is really needed:
    1) To use one of StringRef member functions which is not available in
    SmallString.
    2) To convert to std::string, as StringRef implicitly converts while 
    SmallString do not. We may wish to change this, but it may introduce
    ambiguity.
    
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@232622 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.