clang  6.0.0svn
Public Member Functions | Friends | List of all members
clang::AnalysisDeclContextManager Class Reference

#include "clang/Analysis/AnalysisDeclContext.h"

Public Member Functions

 AnalysisDeclContextManager (bool useUnoptimizedCFG=false, bool addImplicitDtors=false, bool addInitializers=false, bool addTemporaryDtors=false, bool addLifetime=false, bool addLoopExit=false, bool synthesizeBodies=false, bool addStaticInitBranches=false, bool addCXXNewAllocator=true, CodeInjector *injector=nullptr)
 
 ~AnalysisDeclContextManager ()
 
AnalysisDeclContextgetContext (const Decl *D)
 
bool getUseUnoptimizedCFG () const
 
CFG::BuildOptionsgetCFGBuildOptions ()
 
bool synthesizeBodies () const
 Return true if faux bodies should be synthesized for well-known functions. More...
 
const StackFrameContextgetStackFrame (AnalysisDeclContext *Ctx, LocationContext const *Parent, const Stmt *S, const CFGBlock *Blk, unsigned Idx)
 
const StackFrameContextgetStackFrame (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. More...
 

Friends

class AnalysisDeclContext
 

Detailed Description

Definition at line 408 of file AnalysisDeclContext.h.

Constructor & Destructor Documentation

◆ AnalysisDeclContextManager()

AnalysisDeclContextManager::AnalysisDeclContextManager ( bool  useUnoptimizedCFG = false,
bool  addImplicitDtors = false,
bool  addInitializers = false,
bool  addTemporaryDtors = false,
bool  addLifetime = false,
bool  addLoopExit = false,
bool  synthesizeBodies = false,
bool  addStaticInitBranches = false,
bool  addCXXNewAllocator = true,
CodeInjector injector = nullptr 
)

◆ ~AnalysisDeclContextManager()

AnalysisDeclContextManager::~AnalysisDeclContextManager ( )

Definition at line 613 of file AnalysisDeclContext.cpp.

Member Function Documentation

◆ clear()

void AnalysisDeclContextManager::clear ( )

Discard all previously created AnalysisDeclContexts.

Definition at line 88 of file AnalysisDeclContext.cpp.

Referenced by clang::ento::AnalysisManager::ClearContexts(), and clang::LocationContextManager::~LocationContextManager().

◆ getCFGBuildOptions()

CFG::BuildOptions& clang::AnalysisDeclContextManager::getCFGBuildOptions ( )
inline

◆ getContext()

AnalysisDeclContext * AnalysisDeclContextManager::getContext ( const Decl D)

◆ getStackFrame() [1/3]

const StackFrameContext* clang::AnalysisDeclContextManager::getStackFrame ( AnalysisDeclContext Ctx,
LocationContext const *  Parent,
const Stmt S,
const CFGBlock Blk,
unsigned  Idx 
)
inline

Definition at line 452 of file AnalysisDeclContext.h.

◆ getStackFrame() [2/3]

const StackFrameContext* clang::AnalysisDeclContextManager::getStackFrame ( const Decl D)
inline

◆ getStackFrame() [3/3]

StackFrameContext const* clang::AnalysisDeclContextManager::getStackFrame ( const Decl D,
LocationContext const *  Parent,
const Stmt S,
const CFGBlock Blk,
unsigned  Idx 
)
inline

Definition at line 467 of file AnalysisDeclContext.h.

◆ getUseUnoptimizedCFG()

bool clang::AnalysisDeclContextManager::getUseUnoptimizedCFG ( ) const
inline

◆ synthesizeBodies()

bool clang::AnalysisDeclContextManager::synthesizeBodies ( ) const
inline

Return true if faux bodies should be synthesized for well-known functions.

Definition at line 450 of file AnalysisDeclContext.h.

Friends And Related Function Documentation

◆ AnalysisDeclContext

friend class AnalysisDeclContext
friend

Definition at line 479 of file AnalysisDeclContext.h.


The documentation for this class was generated from the following files: