llvm-project
638d6736 - [LifetimeSafety] Add better lifetimebound fix-it spelling for C (#209967)

Commit
8 days ago
[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
Author
Parents
Loading