[clang] [clang][Sema] Make lifetime annotations non-type attributes (PR #196549)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Fri May 8 10:06:29 PDT 2026


usx95 wrote:

I was surprised as well that this is an NFC.

On the contrary this attribute is heavily tested in the following. Both decl and function type attr are testsed with `[[clang::lifetimebound]]`:

- clang/test/SemaCXX/attr-lifetimebound.cpp (Sema related)
- clang/test/Sema/warn-lifetime-analysis-nocfg.cpp (analysis)
- clang/test/Sema/warn-lifetime-safety* (analysis)

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


More information about the cfe-commits mailing list