/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
MemRegion.h | 1 //== MemRegion.h - Abstract memory regions for static analysis --*- C++ -*--==// 10 // This file defines MemRegion and its subclasses. MemRegion defines a 47 const MemRegion *R; 58 RegionOffset(const MemRegion *r, int64_t off) : R(r), Offset(off) {} 60 const MemRegion *getRegion() const { return R; } 76 /// MemRegion - The root abstract class for all memory regions. 77 class MemRegion : public llvm::FoldingSetNode { 127 MemRegion(Kind k) : kind(k) {} 128 virtual ~MemRegion(); [all...] |
SubEngine.h | 41 class MemRegion; 117 ArrayRef<const MemRegion *> ExplicitRegions, 118 ArrayRef<const MemRegion *> Regions, 124 const MemRegion* MR) { 134 ArrayRef<const MemRegion *> ExplicitRegions, 135 ArrayRef<const MemRegion *> Regions,
|
Store.h | 17 #include "clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h" 72 virtual StoreRef BindDefault(Store store, const MemRegion *R, SVal V); 84 /// used to query and manipulate MemRegion objects. 107 const MemRegion *region, 137 const ElementRegion *GetElementZeroRegion(const MemRegion *R, QualType T); 140 /// a MemRegion* to a specific location type. 'R' is the region being 142 const MemRegion *castRegion(const MemRegion *region, QualType CastToTy); 148 const MemRegion *region) const = 0; 159 typedef SmallVector<const MemRegion *, 8> InvalidatedRegions [all...] |
SymbolManager.h | 35 class MemRegion; 123 ///\brief A symbol representing the value stored at a MemRegion. 198 /// A symbol representing the value of a MemRegion whose parent region has 268 const MemRegion* R; 274 SymbolMetadata(SymbolID sym, const MemRegion* r, const Stmt *s, QualType t, 278 const MemRegion *getRegion() const { return R; } 287 static void Profile(llvm::FoldingSetNodeID& profile, const MemRegion *R, 494 /// \brief Make a unique symbol for MemRegion R according to its kind. 519 const SymbolMetadata *getMetadataSymbol(const MemRegion *R, const Stmt *S, 565 typedef llvm::DenseSet<const MemRegion *> RegionSetTy [all...] |
ProgramState.h | 238 invalidateRegions(ArrayRef<const MemRegion *> Regions, const Expr *E, 288 SVal getSVal(const MemRegion* R) const; 290 SVal getSValAsScalarOrLoc(const MemRegion *R) const; 308 bool scanReachableSymbols(const MemRegion * const *I, 309 const MemRegion * const *E, 317 scanReachableSymbols(const MemRegion * const *beg, 318 const MemRegion * const *end) const; 329 ProgramStateRef addTaint(const MemRegion *R, 337 bool isTainted(const MemRegion *Reg, TaintTagType Kind=TaintTagGeneric) const; 340 DynamicTypeInfo getDynamicTypeInfo(const MemRegion *Reg) const [all...] |
ExprEngine.h | 281 ArrayRef<const MemRegion *> ExplicitRegions, 282 ArrayRef<const MemRegion *> Regions, 421 void VisitCXXDestructor(QualType ObjectType, const MemRegion *Dest, 491 ArrayRef<const MemRegion *> ExplicitRegions, 492 ArrayRef<const MemRegion *> Regions, 569 void BifurcateCall(const MemRegion *BifurReg,
|
SVals.h | 35 class MemRegion; 172 const MemRegion *getAsRegion() const; 493 explicit MemRegionVal(const MemRegion* r) : Loc(MemRegionKind, r) {} 496 const MemRegion* getRegion() const { 497 return static_cast<const MemRegion*>(Data); 501 const MemRegion* stripCasts(bool StripBaseCasts = true) const;
|
/external/clang/lib/StaticAnalyzer/Core/ |
Store.cpp | 45 const MemRegion *StoreManager::MakeElementRegion(const MemRegion *Base, 51 // FIXME: Merge with the implementation of the same method in MemRegion.cpp 62 StoreRef StoreManager::BindDefault(Store store, const MemRegion *R, SVal V) { 66 const ElementRegion *StoreManager::GetElementZeroRegion(const MemRegion *R, 73 const MemRegion *StoreManager::castRegion(const MemRegion *R, QualType CastToTy) { 113 case MemRegion::CXXThisRegionKind: 114 case MemRegion::GenericMemSpaceRegionKind: 115 case MemRegion::StackLocalsSpaceRegionKind [all...] |
MemRegion.cpp | 1 //== MemRegion.cpp - Abstract memory regions for static analysis --*- C++ -*--// 10 // This file defines MemRegion and its subclasses. MemRegion defines a 16 #include "clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h" 31 // MemRegion Construction. 59 const MemRegion *superRegion) { 98 const MemRegion *superRegion) { 117 const MemRegion *superRegion) { 138 MemRegion::~MemRegion() {} [all...] |
RegionStore.cpp | 24 #include "clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h" 47 llvm::PointerIntPair<const MemRegion *, 2> P; 59 explicit BindingKey(const MemRegion *r, uint64_t offset, Kind k) 70 const MemRegion *getRegion() const { return P.getPointer(); } 81 const MemRegion *getBaseRegion() const { 92 static BindingKey Make(const MemRegion *R, Kind k); 111 BindingKey BindingKey::Make(const MemRegion *R, Kind k) { 146 typedef llvm::ImmutableMap<const MemRegion *, ClusterBindings> 150 class RegionBindingsRef : public llvm::ImmutableMapRef<const MemRegion *, 154 typedef llvm::ImmutableMapRef<const MemRegion *, ClusterBindings [all...] |
SVals.cpp | 40 const MemRegion *R = RV->getRegion(); 53 const MemRegion* R = X->getRegion(); 75 const MemRegion *R = X->getRegion(); 91 const MemRegion *R = X->getRegion(); 135 const MemRegion *SVal::getAsRegion() const { 145 const MemRegion *loc::MemRegionVal::stripCasts(bool StripBaseCasts) const { 146 const MemRegion *R = getRegion();
|
ConstraintManager.cpp | 23 const MemRegion *R = State->getStateManager().getRegionManager()
|
ProgramState.cpp | 118 const MemRegion *MR = LV.getAsRegion(); 127 const MemRegion *R = loc.castAs<loc::MemRegionVal>().getRegion(); 135 typedef ArrayRef<const MemRegion *> RegionList; 235 SVal ProgramState::getSValAsScalarOrLoc(const MemRegion *R) const { 517 const MemRegion *R = val.getRegion()->getBaseRegion(); 582 bool ScanReachableSymbols::scan(const MemRegion *R) { 600 const MemRegion *Super = SR->getSuperRegion(); 640 bool ProgramState::scanReachableSymbols(const MemRegion * const *I, 641 const MemRegion * const *E, 661 const MemRegion *R = getSVal(S, LCtx).getAsRegion() [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
PointerSubChecker.cpp | 47 const MemRegion *LR = LV.getAsRegion(); 48 const MemRegion *RR = RV.getAsRegion(); 53 const MemRegion *BaseLR = LR->getBaseRegion(); 54 const MemRegion *BaseRR = RR->getBaseRegion();
|
StackAddrEscapeChecker.cpp | 38 void EmitStackError(CheckerContext &C, const MemRegion *R, 40 static SourceRange genName(raw_ostream &os, const MemRegion *R, 45 SourceRange StackAddrEscapeChecker::genName(raw_ostream &os, const MemRegion *R, 95 void StackAddrEscapeChecker::EmitStackError(CheckerContext &C, const MemRegion *R, 129 const MemRegion *R = V.getAsRegion(); 172 SmallVector<std::pair<const MemRegion*, const MemRegion*>, 10> V; 180 const MemRegion *region, SVal val) override { 185 const MemRegion *vR = val.getAsRegion();
|
DynamicTypePropagation.cpp | 46 static void recordFixedType(const MemRegion *Region, const CXXMethodDecl *MD, 78 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) 91 const MemRegion *Target = Dtor->getCXXThisVal().getAsRegion(); 110 const MemRegion *RetReg = Call.getReturnValue().getAsRegion(); 140 const MemRegion *RecReg = Msg->getReceiverSVal().getAsRegion(); 165 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) { 179 const MemRegion *ToR = C.getSVal(CastE).getAsRegion(); 201 const MemRegion *MR = C.getSVal(NewE).getAsRegion(); 249 const MemRegion *ToR = C.getSVal(CastE).getAsRegion();
|
PthreadLockChecker.cpp | 77 REGISTER_LIST_WITH_PROGRAMSTATE(LockSet, const MemRegion *) 79 REGISTER_MAP_WITH_PROGRAMSTATE(LockMap, const MemRegion *, LockState) 128 const MemRegion *lockR = lock.getAsRegion(); 197 const MemRegion *lockR = lock.getAsRegion(); 228 const MemRegion *firstLockR = LS.getHead(); 255 const MemRegion *LockR = Lock.getAsRegion(); 290 const MemRegion *LockR = Lock.getAsRegion();
|
ArrayBoundCheckerV2.cpp | 69 const MemRegion *region) { 74 case MemRegion::SymbolicRegionKind: 78 case MemRegion::ElementRegionKind: 270 const MemRegion *region = location.getAsRegion(); 283 case MemRegion::ElementRegionKind: {
|
CheckerDocumentation.cpp | 252 ArrayRef<const MemRegion *> ExplicitRegions, 253 ArrayRef<const MemRegion *> Regions,
|
ArrayBoundChecker.cpp | 39 const MemRegion *R = l.getAsRegion();
|
MacOSXAPIChecker.cpp | 60 const MemRegion *R =
|
PointerArithChecker.cpp | 44 const MemRegion *LR = LV.getAsRegion();
|
ReturnPointerRangeChecker.cpp | 44 const MemRegion *R = V.getAsRegion();
|
CStringChecker.cpp | 71 ArrayRef<const MemRegion *> ExplicitRegions, 72 ArrayRef<const MemRegion *> Regions, 127 const MemRegion *MR, 132 const MemRegion *MR, 151 const MemRegion *MR); 200 REGISTER_MAP_WITH_PROGRAMSTATE(CStringLength, const MemRegion *, SVal) 271 const MemRegion *R = l.getAsRegion(); 621 const MemRegion *MR, 628 case MemRegion::StringRegionKind: 633 case MemRegion::SymbolicRegionKind [all...] |
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
BugReporterVisitor.h | 28 class MemRegion; 100 const MemRegion *R; 114 FindLastStoreBRVisitor(KnownSVal V, const MemRegion *R, 285 const MemRegion *R; 288 UndefOrNullArgVisitor(const MemRegion *InR) : R(InR) {}
|