clang 20.0.0git
|
#include "clang/Analysis/AnalysisDeclContext.h"
Public Member Functions | |
AnalysisDeclContextManager (ASTContext &ASTCtx, bool useUnoptimizedCFG=false, bool addImplicitDtors=false, bool addInitializers=false, bool addTemporaryDtors=false, bool addLifetime=false, bool addLoopExit=false, bool addScopes=false, bool synthesizeBodies=false, bool addStaticInitBranches=false, bool addCXXNewAllocator=true, bool addRichCXXConstructors=true, bool markElidedCXXConstructors=true, bool addVirtualBaseBranches=true, CodeInjector *injector=nullptr) | |
AnalysisDeclContext * | getContext (const Decl *D) |
bool | getUseUnoptimizedCFG () const |
CFG::BuildOptions & | getCFGBuildOptions () |
bool | synthesizeBodies () const |
const StackFrameContext * | getStackFrame (const Decl *D) |
Obtain the beginning context of the analysis. | |
const StackFrameContext * | getStackFrame (AnalysisDeclContext *ADC, const LocationContext *Parent, const Stmt *S, const CFGBlock *Block, unsigned BlockCount, unsigned Index) |
Obtain a context of the call stack using its parent context. | |
BodyFarm & | getBodyFarm () |
void | clear () |
Discard all previously created AnalysisDeclContexts. | |
Friends | |
class | AnalysisDeclContext |
Definition at line 425 of file AnalysisDeclContext.h.
AnalysisDeclContextManager::AnalysisDeclContextManager | ( | ASTContext & | ASTCtx, |
bool | useUnoptimizedCFG = false , |
||
bool | addImplicitDtors = false , |
||
bool | addInitializers = false , |
||
bool | addTemporaryDtors = false , |
||
bool | addLifetime = false , |
||
bool | addLoopExit = false , |
||
bool | addScopes = false , |
||
bool | synthesizeBodies = false , |
||
bool | addStaticInitBranches = false , |
||
bool | addCXXNewAllocator = true , |
||
bool | addRichCXXConstructors = true , |
||
bool | markElidedCXXConstructors = true , |
||
bool | addVirtualBaseBranches = true , |
||
CodeInjector * | injector = nullptr |
||
) |
Definition at line 68 of file AnalysisDeclContext.cpp.
References clang::CFG::BuildOptions::AddCXXNewAllocator, clang::CFG::BuildOptions::AddImplicitDtors, clang::CFG::BuildOptions::AddInitializers, clang::CFG::BuildOptions::AddLifetime, clang::CFG::BuildOptions::AddLoopExit, clang::CFG::BuildOptions::AddRichCXXConstructors, clang::CFG::BuildOptions::AddScopes, clang::CFG::BuildOptions::AddStaticInitBranches, clang::CFG::BuildOptions::AddTemporaryDtors, clang::CFG::BuildOptions::AddVirtualBaseBranches, clang::CFG::BuildOptions::MarkElidedCXXConstructors, and clang::CFG::BuildOptions::PruneTriviallyFalseEdges.
void AnalysisDeclContextManager::clear | ( | ) |
Discard all previously created AnalysisDeclContexts.
Definition at line 91 of file AnalysisDeclContext.cpp.
Referenced by clang::ento::AnalysisManager::ClearContexts().
BodyFarm & AnalysisDeclContextManager::getBodyFarm | ( | ) |
Definition at line 308 of file AnalysisDeclContext.cpp.
Referenced by clang::AnalysisDeclContext::getBody().
|
inline |
Definition at line 462 of file AnalysisDeclContext.h.
Referenced by clang::ento::AnalysisManager::AnalysisManager().
AnalysisDeclContext * AnalysisDeclContextManager::getContext | ( | const Decl * | D | ) |
Definition at line 294 of file AnalysisDeclContext.cpp.
References D.
Referenced by clang::ento::AnalysisManager::getAnalysis(), clang::ento::AnalysisManager::getAnalysisDeclContext(), clang::ento::CallEvent::getCalleeAnalysisDeclContext(), clang::ento::AnalysisManager::getCFG(), clang::ento::AnalysisManager::getParentMap(), and getStackFrame().
|
inline |
Obtain a context of the call stack using its parent context.
ADC | The AnalysisDeclContext. |
ParentLC | The parent context of this newly created context. |
S | The call. |
Block | The basic block. |
BlockCount | The current count of entering into Blk . |
Index | The index of Blk . |
D
with parent context ParentLC
. Definition at line 476 of file AnalysisDeclContext.h.
References clang::Block, clang::LocationContextManager::getStackFrame(), and Parent.
|
inline |
Obtain the beginning context of the analysis.
D
. Definition at line 470 of file AnalysisDeclContext.h.
References D, getContext(), and clang::LocationContextManager::getStackFrame().
Referenced by clang::ento::CallEvent::getCalleeStackFrame().
|
inline |
Definition at line 458 of file AnalysisDeclContext.h.
References clang::CFG::BuildOptions::PruneTriviallyFalseEdges.
|
inline |
Definition at line 465 of file AnalysisDeclContext.h.
Referenced by clang::AnalysisDeclContext::getBody().
|
friend |
Definition at line 489 of file AnalysisDeclContext.h.