[clang] [clang] Don't emit bogus dangling diagnostics when `[[gsl::Owner]]` and `[[clang::lifetimebound]]` are used together. (PR #108280)

Gábor Horváth via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 12 02:44:36 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).
----------------
Xazax-hun wrote:

Do we fix a problem that was present in the previous release? Or is this something that was introduced since the branching? I think in case users of releases never saw these bogus warnings, there is no reason to mention this in the release notes. 

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


More information about the cfe-commits mailing list