[clang] [clang] Merge lifetimebound and GSL code paths for lifetime analysis (PR #104906)

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 23 03:20:00 PDT 2024


hokein wrote:

Reduced the libcxx failure to:

```
std::string_view test() {
  return std::move(*std::optional<std::string_view>());
}
```

We should not diagnose on this case. I think the PR https://github.com/llvm/llvm-project/pull/104556 should fix this.

https://github.com/llvm/llvm-project/pull/104906


More information about the cfe-commits mailing list