clang API Documentation
#include <AnalysisContext.h>
Public Member Functions | |
AnalysisDeclContextManager (bool useUnoptimizedCFG=false, bool addImplicitDtors=false, bool addInitializers=false, bool addTemporaryDtors=false, bool synthesizeBodies=false, bool addStaticInitBranches=false, bool addCXXNewAllocator=true, CodeInjector *injector=nullptr) | |
~AnalysisDeclContextManager () | |
AnalysisDeclContext * | getContext (const Decl *D) |
bool | getUseUnoptimizedCFG () const |
CFG::BuildOptions & | getCFGBuildOptions () |
bool | synthesizeBodies () const |
const StackFrameContext * | getStackFrame (AnalysisDeclContext *Ctx, LocationContext const *Parent, const Stmt *S, const CFGBlock *Blk, unsigned Idx) |
const StackFrameContext * | getStackFrame (const Decl *D) |
StackFrameContext const * | getStackFrame (const Decl *D, LocationContext const *Parent, const Stmt *S, const CFGBlock *Blk, unsigned Idx) |
void | clear () |
Discard all previously created AnalysisDeclContexts. | |
Friends | |
class | AnalysisDeclContext |
Definition at line 404 of file AnalysisContext.h.
AnalysisDeclContextManager::AnalysisDeclContextManager | ( | bool | useUnoptimizedCFG = false , |
bool | addImplicitDtors = false , |
||
bool | addInitializers = false , |
||
bool | addTemporaryDtors = false , |
||
bool | synthesizeBodies = false , |
||
bool | addStaticInitBranches = false , |
||
bool | addCXXNewAllocator = true , |
||
CodeInjector * | injector = nullptr |
||
) |
Definition at line 66 of file AnalysisDeclContext.cpp.
References clang::CFG::BuildOptions::AddCXXNewAllocator, clang::CFG::BuildOptions::AddImplicitDtors, clang::CFG::BuildOptions::AddInitializers, clang::CFG::BuildOptions::AddStaticInitBranches, clang::CFG::BuildOptions::AddTemporaryDtors, and clang::CFG::BuildOptions::PruneTriviallyFalseEdges.
Definition at line 567 of file AnalysisDeclContext.cpp.
void AnalysisDeclContextManager::clear | ( | ) |
Discard all previously created AnalysisDeclContexts.
Definition at line 84 of file AnalysisDeclContext.cpp.
References Contexts.
Referenced by clang::ento::AnalysisManager::ClearContexts().
Definition at line 437 of file AnalysisContext.h.
Referenced by clang::ento::AnalysisManager::AnalysisManager().
AnalysisDeclContext * AnalysisDeclContextManager::getContext | ( | const Decl * | D | ) |
Definition at line 275 of file AnalysisDeclContext.cpp.
References AnalysisDeclContext, and Contexts.
Referenced by clang::ento::AnalysisManager::getAnalysis(), clang::ento::AnalysisManager::getAnalysisDeclContext(), clang::ento::AnalysisManager::getCFG(), clang::ento::AnalysisManager::getParentMap(), and getStackFrame().
const StackFrameContext* clang::AnalysisDeclContextManager::getStackFrame | ( | AnalysisDeclContext * | Ctx, |
LocationContext const * | Parent, | ||
const Stmt * | S, | ||
const CFGBlock * | Blk, | ||
unsigned | Idx | ||
) | [inline] |
Definition at line 445 of file AnalysisContext.h.
References clang::LocationContextManager::getStackFrame().
const StackFrameContext* clang::AnalysisDeclContextManager::getStackFrame | ( | const Decl * | D | ) | [inline] |
Definition at line 454 of file AnalysisContext.h.
References getContext(), and clang::LocationContextManager::getStackFrame().
StackFrameContext const* clang::AnalysisDeclContextManager::getStackFrame | ( | const Decl * | D, |
LocationContext const * | Parent, | ||
const Stmt * | S, | ||
const CFGBlock * | Blk, | ||
unsigned | Idx | ||
) | [inline] |
Definition at line 460 of file AnalysisContext.h.
References getContext(), and clang::LocationContextManager::getStackFrame().
bool clang::AnalysisDeclContextManager::getUseUnoptimizedCFG | ( | ) | const [inline] |
Definition at line 433 of file AnalysisContext.h.
References clang::CFG::BuildOptions::PruneTriviallyFalseEdges.
bool clang::AnalysisDeclContextManager::synthesizeBodies | ( | ) | const [inline] |
Return true if faux bodies should be synthesized for well-known functions.
Definition at line 443 of file AnalysisContext.h.
Referenced by clang::AnalysisDeclContext::getBody().
friend class AnalysisDeclContext [friend] |
Definition at line 472 of file AnalysisContext.h.
Referenced by getContext().