llvm-project
386e67da - [LifetimeSafety] Suggest/infer annotation in constructors (#191699)

Commit
20 days ago
[LifetimeSafety] Suggest/infer annotation in constructors (#191699) This change improves the lifetime safety checker to detect when constructor parameters escape to class fields and suggest appropriate `[[clang::lifetimebound]]` annotations. ```cpp struct A { View v; A(const MyObj& obj) : v(obj) {} // Now suggests [[clang::lifetimebound]] }; ```
Author
Parents
Loading