clang 22.0.0git
|
The analysis that tracks which loans belong to which origins. More...
Additional Inherited Members | |
![]() | |
using | Lattice = LoanPropagationLattice |
using | Base = DataflowAnalysis< LoanPropagationAnalysis, Lattice, Dir > |
![]() | |
DataflowAnalysis (const CFG &C, AnalysisDeclContext &AC, FactManager &F) | |
Lattice | getState (ProgramPoint P) const |
Lattice | getInState (const CFGBlock *B) const |
Lattice | getOutState (const CFGBlock *B) const |
void | dump () const |
![]() | |
FactManager & | AllFacts |
The analysis that tracks which loans belong to which origins.
Definition at line 840 of file LifetimeSafety.cpp.
|
inline |
Definition at line 847 of file LifetimeSafety.cpp.
|
inline |
Definition at line 855 of file LifetimeSafety.cpp.
|
inline |
Definition at line 857 of file LifetimeSafety.cpp.
|
inline |
Definition at line 889 of file LifetimeSafety.cpp.
References getLoans(), clang::lifetimes::internal::DataflowAnalysis< LoanPropagationAnalysis, LoanPropagationLattice, Direction::Forward >::getState(), and P.
Referenced by clang::lifetimes::internal::LifetimeChecker::checkUse(), getLoans(), and transfer().
Merges two lattices by taking the union of loans for each origin.
Definition at line 861 of file LifetimeSafety.cpp.
References clang::lifetimes::internal::utils::join(), and clang::lifetimes::internal::LoanPropagationLattice::Origins.
|
inline |
The destination origin's loan set is replaced by the source's.
This implicitly "resets" the old loans of the destination.
Definition at line 881 of file LifetimeSafety.cpp.
References clang::lifetimes::internal::AssignOriginFact::getDestOriginID(), getLoans(), and clang::lifetimes::internal::AssignOriginFact::getSrcOriginID().
|
inline |
A new loan is issued to the origin. Old loans are erased.
Definition at line 871 of file LifetimeSafety.cpp.
References clang::lifetimes::internal::IssueFact::getLoanID(), and clang::lifetimes::internal::IssueFact::getOriginID().