[clang] [LifetimeSafety] Warn on meaningless [[clang::lifetimebound]] parameters (PR #201101)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 2 05:44:53 PDT 2026
================
@@ -631,6 +631,13 @@ This warning may produce false-positives diagnostics when it cannot fully model
}];
}
+def LifetimeSafetyMeaninglessLifetimebound
+ : DiagGroup<"lifetime-safety-meaningless-lifetimebound"> {
+ code Documentation = [{
+Detects uses of [[clang::lifetimebound]] that have no effect because the annotated type cannot carry a lifetime.
----------------
NeKon69 wrote:
Yup, thanks, this makes more sense.
https://github.com/llvm/llvm-project/pull/201101
More information about the cfe-commits
mailing list