[PATCH] D75514: [Analyzer] Only add container note tags to the operations of the affected container
Balogh, Ádám via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 17 03:00:44 PDT 2020
baloghadamsoftware marked an inline comment as done.
baloghadamsoftware added inline comments.
================
Comment at: clang/lib/StaticAnalyzer/Checkers/ContainerModeling.cpp:726
+ << Text;
+ return std::string(Out.str());
+ });
----------------
NoQ wrote:
> I suspect you can remove the explicit conversion to `std::string` given that you've specified the return type explicitly.
Theoretically yes, because `llvm::StringRef` has a conversion operator for `std::string`. However, when compiling I get a compilation error:
```
error: could not convert `Out.llvm::raw_svector_ostream::str()` from `llvm::StringRef` to `std::__cxx11::string {aka std::__cxx11::basic_string<char>}`
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75514/new/
https://reviews.llvm.org/D75514
More information about the cfe-commits
mailing list