clang 20.0.0git
|
Public Member Functions | |
BeforeSet ()=default | |
BeforeInfo * | insertAttrExprs (const ValueDecl *Vd, ThreadSafetyAnalyzer &Analyzer) |
Process acquired_before and acquired_after attributes on Vd. | |
BeforeInfo * | getBeforeInfoForDecl (const ValueDecl *Vd, ThreadSafetyAnalyzer &Analyzer) |
void | checkBeforeAfter (const ValueDecl *Vd, const FactSet &FSet, ThreadSafetyAnalyzer &Analyzer, SourceLocation Loc, StringRef CapKind) |
Return true if any mutexes in FSet are in the acquired_before set of Vd. | |
Definition at line 277 of file ThreadSafety.cpp.
|
default |
void BeforeSet::checkBeforeAfter | ( | const ValueDecl * | Vd, |
const FactSet & | FSet, | ||
ThreadSafetyAnalyzer & | Analyzer, | ||
SourceLocation | Loc, | ||
StringRef | CapKind | ||
) |
Return true if any mutexes in FSet are in the acquired_before set of Vd.
Definition at line 1149 of file ThreadSafety.cpp.
References bool, getBeforeInfoForDecl(), clang::Decl::getLocation(), clang::NamedDecl::getName(), Loc, and clang::ast_matchers::traverse().
BeforeSet::BeforeInfo * BeforeSet::getBeforeInfoForDecl | ( | const ValueDecl * | Vd, |
ThreadSafetyAnalyzer & | Analyzer | ||
) |
Definition at line 1136 of file ThreadSafety.cpp.
References insertAttrExprs().
Referenced by checkBeforeAfter(), and insertAttrExprs().
BeforeSet::BeforeInfo * BeforeSet::insertAttrExprs | ( | const ValueDecl * | Vd, |
ThreadSafetyAnalyzer & | Analyzer | ||
) |
Process acquired_before and acquired_after attributes on Vd.
Definition at line 1081 of file ThreadSafety.cpp.
References clang::Decl::attrs(), getBeforeInfoForDecl(), insertAttrExprs(), and clang::threadSafety::CapabilityExpr::valueDecl().
Referenced by getBeforeInfoForDecl(), and insertAttrExprs().