clang  6.0.0svn
Typedefs | Functions
AnalysisDeclContext.cpp File Reference
#include "clang/Analysis/AnalysisDeclContext.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/BodyFarm.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"
Include dependency graph for AnalysisDeclContext.cpp:

Go to the source code of this file.

Typedefs

typedef llvm::DenseMap< const void *, ManagedAnalysis * > ManagedAnalysisMap
 
typedef BumpVector< const VarDecl * > DeclVec
 

Functions

static bool isSelfDecl (const VarDecl *VD)
 Returns true if. More...
 
static void addParentsForSyntheticStmts (const CFG *TheCFG, ParentMap &PM)
 Add each synthetic statement in the CFG to the parent map, using the source statement's parent. More...
 
static DeclVecLazyInitializeReferencedDecls (const BlockDecl *BD, void *&Vec, llvm::BumpPtrAllocator &A)
 

Typedef Documentation

◆ DeclVec

typedef BumpVector<const VarDecl*> DeclVec

Definition at line 544 of file AnalysisDeclContext.cpp.

◆ ManagedAnalysisMap

typedef llvm::DenseMap<const void *, ManagedAnalysis *> ManagedAnalysisMap

Definition at line 36 of file AnalysisDeclContext.cpp.

Function Documentation

◆ addParentsForSyntheticStmts()

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 195 of file AnalysisDeclContext.cpp.

Referenced by clang::AnalysisDeclContext::getCFG(), and clang::AnalysisDeclContext::getUnoptimizedCFG().

◆ isSelfDecl()

static bool isSelfDecl ( const VarDecl VD)
static

Returns true if.

Parameters
VDis an Objective-C implicit 'self' parameter.

Definition at line 137 of file AnalysisDeclContext.cpp.

References clang::NamedDecl::getName().

◆ LazyInitializeReferencedDecls()

static DeclVec* LazyInitializeReferencedDecls ( const BlockDecl BD,
void *&  Vec,
llvm::BumpPtrAllocator &  A 
)
static