[clang] [LifetimeSafety] Implicit lifetimebound only for accessor methods of GSL owners (PR #174741)
Utkarsh Saxena via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 14 06:58:30 PST 2026
usx95 wrote:
We were seeing a false positive of the form:
```cpp
const char* get(std::string_view s) {
return s.data();
}
```
I have revised the tracking to also make the analysis "see through" the views in such cases.
https://github.com/llvm/llvm-project/pull/174741
More information about the cfe-commits
mailing list