clang 22.0.0git
|
Manages the creation, storage, and retrieval of origins for pointer-like variables and expressions. More...
Public Member Functions | |
OriginManager ()=default | |
Origin & | addOrigin (OriginID ID, const clang::ValueDecl &D) |
Origin & | addOrigin (OriginID ID, const clang::Expr &E) |
OriginID | get (const Expr &E) |
OriginID | get (const ValueDecl &D) |
OriginID | getOrCreate (const Expr &E) |
const Origin & | getOrigin (OriginID ID) const |
llvm::ArrayRef< Origin > | getOrigins () const |
OriginID | getOrCreate (const ValueDecl &D) |
void | dump (OriginID OID, llvm::raw_ostream &OS) const |
Manages the creation, storage, and retrieval of origins for pointer-like variables and expressions.
Definition at line 114 of file LifetimeSafety.cpp.
|
default |
|
inline |
Definition at line 122 of file LifetimeSafety.cpp.
|
inline |
Definition at line 118 of file LifetimeSafety.cpp.
Referenced by getOrCreate(), and getOrCreate().
|
inline |
Definition at line 183 of file LifetimeSafety.cpp.
References clang::lifetimes::internal::Origin::getDecl(), clang::lifetimes::internal::Origin::getExpr(), and getOrigin().
Referenced by clang::lifetimes::internal::IssueFact::dump(), clang::lifetimes::internal::OriginFlowFact::dump(), clang::lifetimes::internal::ReturnOfOriginFact::dump(), and clang::lifetimes::internal::UseFact::dump().
Definition at line 128 of file LifetimeSafety.cpp.
References get(), and getOrCreate().
Referenced by get().
Definition at line 144 of file LifetimeSafety.cpp.
References getOrCreate().
Definition at line 155 of file LifetimeSafety.cpp.
References addOrigin().
Definition at line 173 of file LifetimeSafety.cpp.
References addOrigin().
Definition at line 166 of file LifetimeSafety.cpp.
References clang::lifetimes::internal::ID< Tag >::Value.
Referenced by dump().
|
inline |
Definition at line 171 of file LifetimeSafety.cpp.