llvm-project
3aeece86 - [LifetimeSafety] Model base and delegating constructor initializers (#244612)

Commit
1 day ago
[LifetimeSafety] Model base and delegating constructor initializers (#244612) Only member initializers were modeled, so a borrow passed to a base or delegating initializer was lost. Flow it into the object being constructed: this reports dangling temporaries and by-value parameters (including through gsl::Pointer bases, as for locals), verifies lifetimebound parameters forwarded this way, and diagnoses noescape parameters that escape into the object (including through lifetime_capture_by_this). Assisted-by: Claude Opus 5.5 Co-authored-by: Gabor Horvath <gaborh@apple.com>
Author
Parents
Loading