[clang] [clang] Diagnose dangling issues for the "Container<GSLPointer>" case. (PR #107213)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 5 01:52:45 PDT 2024
hokein wrote:
After further testing, this change introduces a new false positive -- we emit a return-stack-address warning for the following case, this is not correct.
```
std::vector<std::string_view> kk() {
std::vector<std::string_view> s;
return s;
}
```
Looking now.
https://github.com/llvm/llvm-project/pull/107213
More information about the cfe-commits
mailing list