clang API Documentation
#include "clang/Analysis/AnalysisContext.h"
#include "BodyFarm.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/ParentMap.h"
#include "clang/AST/StmtVisitor.h"
#include "clang/Analysis/Analyses/CFGReachabilityAnalysis.h"
#include "clang/Analysis/Analyses/LiveVariables.h"
#include "clang/Analysis/Analyses/PseudoConstantAnalysis.h"
#include "clang/Analysis/CFG.h"
#include "clang/Analysis/CFGStmtMap.h"
#include "clang/Analysis/Support/BumpVector.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/SaveAndRestore.h"
#include "llvm/Support/raw_ostream.h"
Go to the source code of this file.
Typedefs | |
typedef llvm::DenseMap< const void *, ManagedAnalysis * > | ManagedAnalysisMap |
typedef BumpVector< const VarDecl * > | DeclVec |
Functions | |
static BodyFarm & | getBodyFarm (ASTContext &C, CodeInjector *injector=nullptr) |
static void | addParentsForSyntheticStmts (const CFG *TheCFG, ParentMap &PM) |
static DeclVec * | LazyInitializeReferencedDecls (const BlockDecl *BD, void *&Vec, llvm::BumpPtrAllocator &A) |
typedef BumpVector<const VarDecl*> DeclVec |
Definition at line 508 of file AnalysisDeclContext.cpp.
typedef llvm::DenseMap<const void *, ManagedAnalysis *> ManagedAnalysisMap |
Definition at line 36 of file AnalysisDeclContext.cpp.
static void addParentsForSyntheticStmts | ( | const CFG * | TheCFG, |
ParentMap & | PM | ||
) | [static] |
Add each synthetic statement in the CFG to the parent map, using the source statement's parent.
Definition at line 176 of file AnalysisDeclContext.cpp.
References clang::ParentMap::getParent(), clang::ParentMap::setParent(), clang::CFG::synthetic_stmt_begin(), and clang::CFG::synthetic_stmt_end().
Referenced by clang::AnalysisDeclContext::getCFG(), clang::AnalysisDeclContext::getParentMap(), and clang::AnalysisDeclContext::getUnoptimizedCFG().
static BodyFarm& getBodyFarm | ( | ASTContext & | C, |
CodeInjector * | injector = nullptr |
||
) | [static] |
Definition at line 88 of file AnalysisDeclContext.cpp.
Referenced by clang::AnalysisDeclContext::getBody().
static DeclVec* LazyInitializeReferencedDecls | ( | const BlockDecl * | BD, |
void *& | Vec, | ||
llvm::BumpPtrAllocator & | A | ||
) | [static] |
Definition at line 510 of file AnalysisDeclContext.cpp.
References clang::BlockDecl::captures(), clang::BlockDecl::getBody(), and clang::BumpVector< T >::push_back().
Referenced by clang::AnalysisDeclContext::getReferencedBlockVars().