[all-commits] [llvm/llvm-project] 638d67: [LifetimeSafety] Add better lifetimebound fix-it s...
Zeyi Xu via All-commits
all-commits at lists.llvm.org
Thu Jul 16 08:28:43 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 638d6736400891b03f211487ccb643a49f14f743
https://github.com/llvm/llvm-project/commit/638d6736400891b03f211487ccb643a49f14f743
Author: Zeyi Xu <mitchell.xu2 at gmail.com>
Date: 2026-07-16 (Thu, 16 Jul 2026)
Changed paths:
M clang/lib/Sema/SemaLifetimeSafety.h
A clang/test/Sema/LifetimeSafety/annotation-suggestions-fixits.c
Log Message:
-----------
[LifetimeSafety] Add better lifetimebound fix-it spelling for C (#209967)
Use `__attribute__((lifetimebound))` as the default lifetimebound fix-it
spelling in pre-C23 C.
C++ and C23 continue to use `[[clang::lifetimebound]]` as the default
spelling.
When no explicit lifetimebound macro is configured, pre-C23 C only looks
for `__attribute__((lifetimebound))`, C++ and C23 keep looking for
`[[clang::lifetimebound]]` macros first, then
`__attribute__((lifetimebound))`.
Follow up of https://github.com/llvm/llvm-project/pull/204045
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