[clang] [LifetimeSafety] Warn on inapplicable `[[clang::lifetimebound]]` when return type can not carry a lifetime (PR #203767)

Utkarsh Saxena via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 21 13:12:41 PDT 2026


usx95 wrote:

SG. Having a separate stricter warning for relaxations special cased by the lifetime annotation collector makes sense to me.

> That being said, the documentation probably should make it clear how we are usually relaxed about associating origins with certain types.

+1.

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


More information about the cfe-commits mailing list