clang  6.0.0svn
Macros | Typedefs | Functions
CallEvent.cpp File Reference
#include "clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h"
#include "clang/AST/ParentMap.h"
#include "clang/Analysis/ProgramPoint.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/CheckerContext.h"
#include "clang/StaticAnalyzer/Core/PathSensitive/DynamicTypeMap.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Debug.h"
Include dependency graph for CallEvent.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "static-analyzer-call-event"
 

Typedefs

typedef llvm::PointerIntPair< const PseudoObjectExpr *, 2 > ObjCMessageDataTy
 

Functions

static bool isCallback (QualType T)
 
static bool isVoidPointerToNonConst (QualType T)
 
static bool isPointerToConst (QualType Ty)
 Returns true if a type is a pointer-to-const or reference-to-const with no further indirection. More...
 
static void findPtrToConstParams (llvm::SmallSet< unsigned, 4 > &PreserveArgs, const CallEvent &Call)
 
static void addParameterValuesToBindings (const StackFrameContext *CalleeCtx, CallEvent::BindingsTy &Bindings, SValBuilder &SVB, const CallEvent &Call, ArrayRef< ParmVarDecl *> parameters)
 
static const ExprgetSyntacticFromForPseudoObjectExpr (const PseudoObjectExpr *POE)
 
static const ObjCMethodDeclfindDefiningRedecl (const ObjCMethodDecl *MD)
 
static bool isCallToSelfClass (const ObjCMessageExpr *ME)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "static-analyzer-call-event"

Definition at line 26 of file CallEvent.cpp.

Typedef Documentation

◆ ObjCMessageDataTy

typedef llvm::PointerIntPair<const PseudoObjectExpr *, 2> ObjCMessageDataTy

Definition at line 786 of file CallEvent.cpp.

Function Documentation

◆ addParameterValuesToBindings()

static void addParameterValuesToBindings ( const StackFrameContext CalleeCtx,
CallEvent::BindingsTy Bindings,
SValBuilder SVB,
const CallEvent Call,
ArrayRef< ParmVarDecl *>  parameters 
)
static

◆ findDefiningRedecl()

static const ObjCMethodDecl* findDefiningRedecl ( const ObjCMethodDecl MD)
static

Definition at line 928 of file CallEvent.cpp.

References clang::ObjCMethodDecl::hasBody().

◆ findPtrToConstParams()

static void findPtrToConstParams ( llvm::SmallSet< unsigned, 4 > &  PreserveArgs,
const CallEvent Call 
)
static

Definition at line 145 of file CallEvent.cpp.

Referenced by clang::ento::CallEvent::invalidateRegions().

◆ getSyntacticFromForPseudoObjectExpr()

static const Expr* getSyntacticFromForPseudoObjectExpr ( const PseudoObjectExpr POE)
static

◆ isCallback()

static bool isCallback ( QualType  T)
static

◆ isCallToSelfClass()

static bool isCallToSelfClass ( const ObjCMessageExpr ME)
static

◆ isPointerToConst()

static bool isPointerToConst ( QualType  Ty)
static

Returns true if a type is a pointer-to-const or reference-to-const with no further indirection.

Definition at line 131 of file CallEvent.cpp.

References clang::Type::getPointeeType(), clang::Type::isAnyPointerType(), and clang::QualType::isConstQualified().

◆ isVoidPointerToNonConst()

static bool isVoidPointerToNonConst ( QualType  T)
static