clang API Documentation
#include <ThreadSafetyCommon.h>
Public Member Functions | |
| CFGWalker () | |
| bool | init (AnalysisDeclContext &AC) |
| template<class Visitor > | |
| void | walk (Visitor &V) |
| const CFG * | getGraph () const |
| CFG * | getGraph () |
| const NamedDecl * | getDecl () const |
| const PostOrderCFGView * | getSortedGraph () const |
Definition at line 129 of file ThreadSafetyCommon.h.
| clang::threadSafety::CFGWalker::CFGWalker | ( | ) | [inline] |
Definition at line 131 of file ThreadSafetyCommon.h.
| const NamedDecl* clang::threadSafety::CFGWalker::getDecl | ( | ) | const [inline] |
Definition at line 239 of file ThreadSafetyCommon.h.
References clang::AnalysisDeclContext::getDecl().
Referenced by clang::threadSafety::ThreadSafetyAnalyzer::runAnalysis(), and walk().
| const CFG* clang::threadSafety::CFGWalker::getGraph | ( | ) | const [inline] |
Definition at line 236 of file ThreadSafetyCommon.h.
Referenced by clang::threadSafety::ThreadSafetyAnalyzer::runAnalysis().
| CFG* clang::threadSafety::CFGWalker::getGraph | ( | ) | [inline] |
Definition at line 237 of file ThreadSafetyCommon.h.
| const PostOrderCFGView* clang::threadSafety::CFGWalker::getSortedGraph | ( | ) | const [inline] |
Definition at line 243 of file ThreadSafetyCommon.h.
Referenced by clang::threadSafety::ThreadSafetyAnalyzer::runAnalysis().
| bool clang::threadSafety::CFGWalker::init | ( | AnalysisDeclContext & | AC | ) | [inline] |
Definition at line 135 of file ThreadSafetyCommon.h.
References clang::AnalysisDeclContext::getAnalysis(), clang::AnalysisDeclContext::getCFG(), and clang::AnalysisDeclContext::getDecl().
Referenced by clang::threadSafety::ThreadSafetyAnalyzer::runAnalysis().
| void clang::threadSafety::CFGWalker::walk | ( | Visitor & | V | ) | [inline] |
Definition at line 154 of file ThreadSafetyCommon.h.
References clang::PostOrderCFGView::CFGBlockSet::alreadySet(), clang::CFGElement::AutomaticObjectDtor, clang::CFGElement::castAs(), clang::AnalysisDeclContext::getASTContext(), getDecl(), clang::CFGImplicitDtor::getDestructorDecl(), clang::CFG::getEntry(), clang::CFG::getExit(), clang::CFGStmt::getStmt(), clang::CFGAutomaticObjDtor::getVarDecl(), clang::PostOrderCFGView::CFGBlockSet::insert(), and clang::CFGElement::Statement.
Referenced by clang::threadSafety::SExprBuilder::buildCFG().