[clang] [clang] Fix incorrect inferred lifetime_capture_by attr on STL (PR #118013)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 28 18:53:43 PST 2024
https://github.com/usx95 approved this pull request.
Can you also add a lit test for:
```cpp
std::vector<std::string> getVector();
std::set<std::string> s;
s.insert(getVector().begin(), getVector().end()); // FIXME: taking iterator of a temporary container without immediate dereference is almost always wrong.
```
https://github.com/llvm/llvm-project/pull/118013
More information about the cfe-commits
mailing list