/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | MemRegion.h | 49 const MemRegion *R; 60 RegionOffset(const MemRegion *r, int64_t off) : R(r), Offset(off) {} in RegionOffset() 62 const MemRegion *getRegion() const { return R; } in getRegion() 79 class MemRegion : public llvm::FoldingSetNode { 129 MemRegion(Kind k) : kind(k) {} in MemRegion() function 130 virtual ~MemRegion(); 141 const MemRegion *getBaseRegion() const; 144 virtual bool isSubRegionOf(const MemRegion *R) const; 146 const MemRegion *StripCasts(bool StripBaseCasts = true) const; 181 class MemSpaceRegion : public MemRegion { [all …]
|
D | Store.h | 72 virtual StoreRef BindDefault(Store store, const MemRegion *R, SVal V); 122 const MemRegion *region, in getSizeInElements() 152 const ElementRegion *GetElementZeroRegion(const MemRegion *R, QualType T); 157 const MemRegion *castRegion(const MemRegion *region, QualType CastToTy); 163 const MemRegion *region) const = 0; 174 typedef SmallVector<const MemRegion *, 8> InvalidatedRegions; 195 ArrayRef<const MemRegion *> Regions, 211 virtual bool scanReachableSymbols(Store S, const MemRegion *R, 221 const MemRegion *region, SVal val) = 0; 227 const MemRegion* Binding; [all …]
|
D | SubEngine.h | 41 class MemRegion; variable 108 ArrayRef<const MemRegion *> ExplicitRegions, 109 ArrayRef<const MemRegion *> Regions, 115 const MemRegion* MR) { in processRegionChange() 125 ArrayRef<const MemRegion *> ExplicitRegions, 126 ArrayRef<const MemRegion *> Regions,
|
D | ProgramState.h | 243 ProgramStateRef invalidateRegions(ArrayRef<const MemRegion *> Regions, 287 SVal getSVal(const MemRegion* R) const; 289 SVal getSValAsScalarOrLoc(const MemRegion *R) const; 307 bool scanReachableSymbols(const MemRegion * const *I, 308 const MemRegion * const *E, 316 scanReachableSymbols(const MemRegion * const *beg, 317 const MemRegion * const *end) const; 328 ProgramStateRef addTaint(const MemRegion *R, 336 bool isTainted(const MemRegion *Reg, TaintTagType Kind=TaintTagGeneric) const; 339 DynamicTypeInfo getDynamicTypeInfo(const MemRegion *Reg) const; [all …]
|
D | SymbolManager.h | 38 class MemRegion; variable 268 const MemRegion* R; 274 SymbolMetadata(SymbolID sym, const MemRegion* r, const Stmt *s, QualType t, in SymbolMetadata() 278 const MemRegion *getRegion() const { return R; } in getRegion() 287 static void Profile(llvm::FoldingSetNodeID& profile, const MemRegion *R, in Profile() 517 const SymbolMetadata* getMetadataSymbol(const MemRegion* R, const Stmt *S, 563 typedef llvm::DenseSet<const MemRegion *> RegionSetTy; 575 llvm::DenseMap<const MemRegion *, unsigned> includedRegionCache; 595 bool isLiveRegion(const MemRegion *region); 641 void markLive(const MemRegion *region); [all …]
|
D | SVals.h | 35 class MemRegion; variable 164 const MemRegion *getAsRegion() const; 485 explicit MemRegionVal(const MemRegion* r) : Loc(MemRegionKind, r) {} in MemRegionVal() 488 const MemRegion* getRegion() const { in getRegion() 489 return static_cast<const MemRegion*>(Data); in getRegion() 493 const MemRegion* stripCasts(bool StripBaseCasts = true) const;
|
D | ExprEngine.h | 268 ArrayRef<const MemRegion *> ExplicitRegions, 269 ArrayRef<const MemRegion *> Regions, 408 void VisitCXXDestructor(QualType ObjectType, const MemRegion *Dest, 473 ArrayRef<const MemRegion *> ExplicitRegions, 474 ArrayRef<const MemRegion *> Regions, 550 void BifurcateCall(const MemRegion *BifurReg,
|
D | CallEvent.h | 88 const MemRegion *R; 93 RuntimeDefinition(const Decl *InD, const MemRegion *InR): D(InD), R(InR) {} in RuntimeDefinition() 103 const MemRegion *getDispatchRegion() { return R; } in getDispatchRegion() 165 typedef SmallVectorImpl<const MemRegion *> RegionList; 670 typedef llvm::PointerIntPair<const MemRegion *, 1, bool> DtorDataTy; 680 const MemRegion *Target, bool IsBaseDestructor, in CXXDestructorCall() 725 CXXConstructorCall(const CXXConstructExpr *CE, const MemRegion *Target, in CXXConstructorCall() 986 getCXXConstructorCall(const CXXConstructExpr *E, const MemRegion *Target, in getCXXConstructorCall() 993 const MemRegion *Target, bool IsBase, in getCXXDestructorCall()
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | Store.cpp | 45 const MemRegion *StoreManager::MakeElementRegion(const MemRegion *Base, in MakeElementRegion() 62 StoreRef StoreManager::BindDefault(Store store, const MemRegion *R, SVal V) { in BindDefault() 66 const ElementRegion *StoreManager::GetElementZeroRegion(const MemRegion *R, in GetElementZeroRegion() 73 const MemRegion *StoreManager::castRegion(const MemRegion *R, QualType CastToTy) { in castRegion() 113 case MemRegion::CXXThisRegionKind: in castRegion() 114 case MemRegion::GenericMemSpaceRegionKind: in castRegion() 115 case MemRegion::StackLocalsSpaceRegionKind: in castRegion() 116 case MemRegion::StackArgumentsSpaceRegionKind: in castRegion() 117 case MemRegion::HeapSpaceRegionKind: in castRegion() 118 case MemRegion::UnknownSpaceRegionKind: in castRegion() [all …]
|
D | MemRegion.cpp | 59 const MemRegion *superRegion) { in getSubRegion() 98 const MemRegion *superRegion) { in getSubRegion() 117 const MemRegion *superRegion) { in getSubRegion() 138 MemRegion::~MemRegion() {} in ~MemRegion() 149 bool SubRegion::isSubRegionOf(const MemRegion* R) const { in isSubRegionOf() 150 const MemRegion* r = getSuperRegion(); in isSubRegionOf() 165 const MemRegion *superRegion = r->getSuperRegion(); in getMemRegionManager() 229 ObjCIvarRegion::ObjCIvarRegion(const ObjCIvarDecl *ivd, const MemRegion* sReg) in ObjCIvarRegion() 264 const MemRegion* superRegion) { in ProfileRegion() 272 const MemRegion* superRegion) { in ProfileRegion() [all …]
|
D | RegionStore.cpp | 45 llvm::PointerIntPair<const MemRegion *, 2> P; 57 explicit BindingKey(const MemRegion *r, uint64_t offset, Kind k) in BindingKey() 68 const MemRegion *getRegion() const { return P.getPointer(); } in getRegion() 79 const MemRegion *getBaseRegion() const { in getBaseRegion() 90 static BindingKey Make(const MemRegion *R, Kind k); 109 BindingKey BindingKey::Make(const MemRegion *R, Kind k) { in Make() 146 typedef llvm::ImmutableMap<const MemRegion *, ClusterBindings> 150 class RegionBindingsRef : public llvm::ImmutableMapRef<const MemRegion *, 154 typedef llvm::ImmutableMapRef<const MemRegion *, ClusterBindings> 160 : llvm::ImmutableMapRef<const MemRegion *, ClusterBindings>(T, F), in RegionBindingsRef() [all …]
|
D | SVals.cpp | 40 const MemRegion *R = RV->getRegion(); in hasConjuredSymbol() 53 const MemRegion* R = X->getRegion(); in getAsFunctionDecl() 73 const MemRegion *R = X->stripCasts(); in getAsLocSymbol() 87 const MemRegion *R = X->getRegion(); in getLocSymbolInBase() 127 const MemRegion *SVal::getAsRegion() const { in getAsRegion() 137 const MemRegion *loc::MemRegionVal::stripCasts(bool StripBaseCasts) const { in stripCasts() 138 const MemRegion *R = getRegion(); in stripCasts()
|
D | ProgramState.cpp | 126 const MemRegion *MR = LV.getAsRegion(); in bindLoc() 135 const MemRegion *R = loc.castAs<loc::MemRegionVal>().getRegion(); in bindDefault() 144 ProgramState::invalidateRegions(ArrayRef<const MemRegion *> Regions, in invalidateRegions() 161 ProgramState::invalidateRegionsImpl(ArrayRef<const MemRegion *> Regions, in invalidateRegionsImpl() 212 SVal ProgramState::getSValAsScalarOrLoc(const MemRegion *R) const { in getSValAsScalarOrLoc() 551 bool ScanReachableSymbols::scan(const MemRegion *R) { in scan() 571 const MemRegion *Super = SR->getSuperRegion(); in scan() 611 bool ProgramState::scanReachableSymbols(const MemRegion * const *I, in scanReachableSymbols() 612 const MemRegion * const *E, in scanReachableSymbols() 632 const MemRegion *R = getSVal(S, LCtx).getAsRegion(); in addTaint() [all …]
|
D | CallEvent.cpp | 143 SmallVector<const MemRegion *, 8> RegionsToInvalidate; in invalidateRegions() 165 if (const MemRegion *R = V.getAsRegion()) { in invalidateRegions() 184 const MemRegion *superReg = ER->getSuperRegion(); in invalidateRegions() 411 if (const MemRegion *R = getCXXThisVal().getAsRegion()) in getExtraInvalidatedRegions() 439 const MemRegion *R = getCXXThisVal().getAsRegion(); in getRuntimeDefinition() 546 const MemRegion *DataReg = getSVal(Callee).getAsRegion(); in getBlockRegion() 567 if (const MemRegion *R = getBlockRegion()) in getExtraInvalidatedRegions() 582 return loc::MemRegionVal(static_cast<const MemRegion *>(Data)); in getCXXThisVal() 588 Regions.push_back(static_cast<const MemRegion *>(Data)); in getExtraInvalidatedRegions() 641 if (const MemRegion *R = getReceiverSVal().getAsRegion()) in getExtraInvalidatedRegions() [all …]
|
D | ExprEngineCXX.cpp | 39 const MemRegion *MR = V.getAsRegion(); in CreateCXXTemporaryObject() 105 const MemRegion *Target = 0; in VisitCXXConstructExpr() 226 const MemRegion *Dest, in VisitCXXDestructor() 310 const MemRegion *NewReg = symVal.castAs<loc::MemRegionVal>().getRegion(); in VisitCXXNewExpr() 382 const MemRegion *R = in VisitCXXThisExpr()
|
D | BugReporterVisitors.cpp | 304 if (const MemRegion *MR = LValue->getAsRegion()) { in visitNodeInitial() 757 static const MemRegion *getLocationRegionIfReference(const Expr *E, in getLocationRegionIfReference() 839 const MemRegion *R = 0; in trackNullOrUndefValue() 860 if (const MemRegion *RR = getLocationRegionIfReference(Inner, N)) in trackNullOrUndefValue() 868 if (const MemRegion *RR = getLocationRegionIfReference(Inner, N)) { in trackNullOrUndefValue() 942 const MemRegion *RegionRVal = RVal.getAsRegion(); in trackNullOrUndefValue() 957 const MemRegion *R) { in createVisitorObject() 1176 if (const MemRegion *R = state->getLValue(cast<VarDecl>(DR->getDecl()), in patternMatch() 1336 if (const MemRegion *R = state->getLValue(VD, LCtx).getAsRegion()) { in VisitConditionVariable() 1382 if (const MemRegion *R = state->getLValue(VD, LCtx).getAsRegion()) { in VisitTrueTest() [all …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | 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, in genName() 95 void StackAddrEscapeChecker::EmitStackError(CheckerContext &C, const MemRegion *R, in EmitStackError() 129 const MemRegion *R = V.getAsRegion(); in checkPreStmt() 172 SmallVector<std::pair<const MemRegion*, const MemRegion*>, 10> V; in checkEndFunction() 180 const MemRegion *region, SVal val) { in checkEndFunction() 185 const MemRegion *vR = val.getAsRegion(); in checkEndFunction()
|
D | DynamicTypePropagation.cpp | 44 static void recordFixedType(const MemRegion *Region, const CXXMethodDecl *MD, in recordFixedType() 76 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) in checkPreCall() 89 const MemRegion *Target = Dtor->getCXXThisVal().getAsRegion(); in checkPreCall() 108 const MemRegion *RetReg = Call.getReturnValue().getAsRegion(); in checkPostCall() 138 const MemRegion *RecReg = Msg->getReceiverSVal().getAsRegion(); in checkPostCall() 163 if (const MemRegion *Target = Ctor->getCXXThisVal().getAsRegion()) { in checkPostCall() 177 const MemRegion *ToR = C.getSVal(CastE).getAsRegion(); in checkPostStmt() 233 const MemRegion *ToR = C.getSVal(CastE).getAsRegion(); in getBetterObjCType()
|
D | PointerSubChecker.cpp | 47 const MemRegion *LR = LV.getAsRegion(); in checkPreStmt() 48 const MemRegion *RR = RV.getAsRegion(); in checkPreStmt() 53 const MemRegion *BaseLR = LR->getBaseRegion(); in checkPreStmt() 54 const MemRegion *BaseRR = RR->getBaseRegion(); in checkPreStmt()
|
D | CStringChecker.cpp | 69 ArrayRef<const MemRegion *> ExplicitRegions, 70 ArrayRef<const MemRegion *> Regions, 123 const MemRegion *MR, 128 const MemRegion *MR, 146 const MemRegion *MR); 195 REGISTER_MAP_WITH_PROGRAMSTATE(CStringLength, const MemRegion *, SVal) in REGISTER_MAP_WITH_PROGRAMSTATE() argument 265 const MemRegion *R = l.getAsRegion(); in CheckLocation() 612 const MemRegion *MR, in setCStringLength() 619 case MemRegion::StringRegionKind: in setCStringLength() 624 case MemRegion::SymbolicRegionKind: in setCStringLength() [all …]
|
D | PthreadLockChecker.cpp | 46 REGISTER_LIST_WITH_PROGRAMSTATE(LockSet, const MemRegion *) in REGISTER_LIST_WITH_PROGRAMSTATE() argument 91 const MemRegion *lockR = lock.getAsRegion(); in AcquireLock() 153 const MemRegion *lockR = lock.getAsRegion(); in ReleaseLock() 165 const MemRegion *firstLockR = LS.getHead(); in ReleaseLock()
|
D | ArrayBoundCheckerV2.cpp | 69 const MemRegion *region) { in computeExtentBegin() 74 case MemRegion::SymbolicRegionKind: in computeExtentBegin() 78 case MemRegion::ElementRegionKind: in computeExtentBegin() 270 const MemRegion *region = location.getAsRegion(); in computeOffset() 283 case MemRegion::ElementRegionKind: { in computeOffset()
|
D | CheckerDocumentation.cpp | 251 ArrayRef<const MemRegion *> ExplicitRegions, in checkRegionChanges() 252 ArrayRef<const MemRegion *> Regions, in checkRegionChanges()
|
D | MallocChecker.cpp | 116 typedef std::pair<const ExplodedNode*, const MemRegion*> LeakInfo; 231 static bool SummarizeRegion(raw_ostream &os, const MemRegion *MR); 704 const MemRegion *R = ArgVal.getAsRegion(); in FreeMemAux() 806 const MemRegion *MR) { in SummarizeRegion() 808 case MemRegion::FunctionTextRegionKind: { in SummarizeRegion() 816 case MemRegion::BlockTextRegionKind: in SummarizeRegion() 819 case MemRegion::BlockDataRegionKind: in SummarizeRegion() 888 const MemRegion *MR = ArgVal.getAsRegion(); in ReportBadFree() 930 const MemRegion *MR = ArgVal.getAsRegion(); in ReportOffsetFree() 1116 const MemRegion *ReferenceRegion = 0; in getAllocationSite() [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
D | BugReporterVisitor.h | 28 class MemRegion; variable 100 const MemRegion *R; 109 const MemRegion *R); 115 FindLastStoreBRVisitor(KnownSVal V, const MemRegion *R) in FindLastStoreBRVisitor() 266 const MemRegion *R; 269 UndefOrNullArgVisitor(const MemRegion *InR) : R(InR) {} in UndefOrNullArgVisitor()
|