[all-commits] [llvm/llvm-project] 3613e2: [LifetimeSafety] Add fix-it for misplaced lifetime...
David Meng via All-commits
all-commits at lists.llvm.org
Thu May 28 10:34:01 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3613e27b4c6f5bd79ed0bf982efd76495bdf3dd7
https://github.com/llvm/llvm-project/commit/3613e27b4c6f5bd79ed0bf982efd76495bdf3dd7
Author: David Meng <davidmenggx at gmail.com>
Date: 2026-05-28 (Thu, 28 May 2026)
Changed paths:
M clang/lib/Sema/SemaLifetimeSafety.h
M clang/test/Sema/warn-lifetime-safety-misplaced-lifetimebound-cross-tu.cpp
M clang/test/Sema/warn-lifetime-safety-misplaced-lifetimebound-intra-tu.cpp
A clang/test/Sema/warn-lifetime-safety-misplaced-lifetimebound-macro.cpp
Log Message:
-----------
[LifetimeSafety] Add fix-it for misplaced lifetimebound attributes (#199149)
This patch adds a fix-it hint for
`warn_lifetime_safety_intra_tu_misplaced_lifetimebound` and
`warn_lifetime_safety_cross_tu_misplaced_lifetimebound` to the
appropriate declaration.
The fix-it attribute is emitted in the correct location, accounting for
pure virtual functions, overrides, trailing return types, and default
arguments. The message is suppressed for macros.
Resolves #198634
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list