[clang] [clang] Don't emit bogus dangling diagnostics when `[[gsl::Owner]]` and `[[clang::lifetimebound]]` are used together. (PR #108280)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 12 02:57:19 PDT 2024
================
@@ -300,6 +300,8 @@ Improvements to Clang's diagnostics
- Clang now diagnoses cases where a dangling ``GSLOwner<GSLPointer>`` object is constructed, e.g. ``std::vector<string_view> v = {std::string()};`` (#GH100526).
+- Don't emit bogus dangling diagnostics when ``[[gsl::Owner]]`` and `[[clang::lifetimebound]]` are used together (#GH108272).
----------------
hokein wrote:
Yeah, this issue has been present in earlier releases, starting from Clang 10.
https://github.com/llvm/llvm-project/pull/108280
More information about the cfe-commits
mailing list