clang API Documentation

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 "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for CallEvent.cpp:

Go to the source code of this file.

Typedefs

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

Functions

static bool isCallbackArg (SVal V, 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.
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)

Typedef Documentation

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

Definition at line 667 of file CallEvent.cpp.


Function Documentation

static void addParameterValuesToBindings ( const StackFrameContext CalleeCtx,
CallEvent::BindingsTy Bindings,
SValBuilder SVB,
const CallEvent Call,
ArrayRef< ParmVarDecl * >  parameters 
) [static]
static void findPtrToConstParams ( llvm::SmallSet< unsigned, 4 > &  PreserveArgs,
const CallEvent Call 
) [static]
static bool isCallbackArg ( SVal  V,
QualType  T 
) [static]
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 113 of file CallEvent.cpp.

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

Referenced by findPtrToConstParams().