llvm-project
12f970ab - [LifetimeSafety] Add support for derived-to-base conversions (#175631)

Commit
11 days ago
[LifetimeSafety] Add support for derived-to-base conversions (#175631) Add support for derived-to-base conversions in lifetime analysis. Added handling for `CK_UncheckedDerivedToBase` and `CK_DerivedToBase` cast kinds in the `FactsGenerator::VisitImplicitCastExpr` method. These cast kinds are now treated similarly to other conversions by flowing origins from source to destination. Added a unit test `DerivedToBaseThisArg` that verifies lifetime information is correctly propagated through derived-to-base conversions when using member functions inherited from a base class.
Author
Committer
Parents
Loading