| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | Regions.def | 67 ABSTRACT_REGION(TypedValueRegion, TypedRegion) 68 REGION(CompoundLiteralRegion, TypedValueRegion) 69 REGION(CXXBaseObjectRegion, TypedValueRegion) 70 REGION(CXXDerivedObjectRegion, TypedValueRegion) 71 REGION(CXXTempObjectRegion, TypedValueRegion) 72 REGION(CXXThisRegion, TypedValueRegion) 73 ABSTRACT_REGION(DeclRegion, TypedValueRegion) 83 REGION(ElementRegion, TypedValueRegion) 84 REGION(ObjCStringRegion, TypedValueRegion) 85 REGION(StringRegion, TypedValueRegion)
|
| H A D | MemRegion.h | 531 class TypedValueRegion : public TypedRegion { 807 class StringRegion : public TypedValueRegion { 841 class ObjCStringRegion : public TypedValueRegion { 878 class CompoundLiteralRegion : public TypedValueRegion { 912 class DeclRegion : public TypedValueRegion { 1052 class CXXThisRegion : public TypedValueRegion { 1057 : TypedValueRegion(sReg, CXXThisRegionKind), in CXXThisRegion() 1177 class ElementRegion : public TypedValueRegion { 1216 class CXXTempObjectRegion : public TypedValueRegion { 1248 class CXXBaseObjectRegion : public TypedValueRegion { [all …]
|
| H A D | SymbolManager.h | 42 const TypedValueRegion *R; 45 SymbolRegionValue(SymbolID sym, const TypedValueRegion *r) in SymbolRegionValue() 52 const TypedValueRegion* getRegion() const { return R; } in getRegion() 54 static void Profile(llvm::FoldingSetNodeID& profile, const TypedValueRegion* R) { in Profile() 136 const TypedValueRegion *R; 139 SymbolDerived(SymbolID sym, SymbolRef parent, const TypedValueRegion *r) in SymbolDerived() 149 const TypedValueRegion *getRegion() const { return R; } in getRegion() 159 const TypedValueRegion *r) { in Profile() 505 const SymbolRegionValue* getRegionValueSymbol(const TypedValueRegion* R); 521 const TypedValueRegion *R);
|
| H A D | BasicValueFactory.h | 64 const TypedValueRegion *region; 67 LazyCompoundValData(const StoreRef &st, const TypedValueRegion *r) in LazyCompoundValData() 77 const TypedValueRegion *getRegion() const { return region; } in getRegion() 81 const TypedValueRegion *region); 242 const TypedValueRegion *region);
|
| H A D | SValBuilder.h | 181 DefinedOrUnknownSVal getRegionValueSymbolVal(const TypedValueRegion *region); 219 SymbolRef parentSymbol, const TypedValueRegion *region); 246 const TypedValueRegion *region) { in makeLazyCompoundVal()
|
| H A D | SVals.h | 48 class TypedValueRegion; variable 420 const TypedValueRegion *getRegion() const;
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/UninitializedObject/ |
| H A D | UninitializedPointee.cpp | 115 const TypedValueRegion *R; 118 DereferenceInfo(const TypedValueRegion *R, bool NCB, bool IC) in DereferenceInfo() 171 const TypedValueRegion *R = DerefInfo->R; in isDereferencableUninit() 223 llvm::SmallSet<const TypedValueRegion *, 5> VisitedRegions; in dereference() 235 const auto *R = V.getAsRegion()->getAs<TypedValueRegion>(); in dereference() 246 R = Tmp->getAs<TypedValueRegion>(); in dereference() 263 const auto *SuperR = dyn_cast<TypedValueRegion>(R->getSuperRegion()); in dereference()
|
| H A D | UninitializedObjectChecker.cpp | 108 static const TypedValueRegion * 154 const TypedValueRegion *R = getConstructedRegion(CtorDecl, Context); in checkEndFunction() 228 ProgramStateRef State, const TypedValueRegion *const R, in FindUninitializedFields() 274 bool FindUninitializedFields::isNonUnionUninit(const TypedValueRegion *R, in isNonUnionUninit() 357 .getRegionAs<TypedValueRegion>(); in isNonUnionUninit() 375 bool FindUninitializedFields::isUnionUninit(const TypedValueRegion *R) { in isUnionUninit() 455 static const TypedValueRegion * 464 auto *R = ObjectV.getAsRegion()->getAs<TypedValueRegion>(); in getConstructedRegion() 474 const TypedValueRegion *CurrRegion = getConstructedRegion(Ctor, Context); in willObjectBeAnalyzedLater() 486 const TypedValueRegion *OtherRegion = in willObjectBeAnalyzedLater()
|
| H A D | UninitializedObject.h | 199 const TypedValueRegion *const ObjectR; 222 const TypedValueRegion *const R, 290 bool isUnionUninit(const TypedValueRegion *R); 294 bool isNonUnionUninit(const TypedValueRegion *R, FieldChainInfo LocalChain);
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | RegionStore.cpp | 507 const TypedValueRegion* R, 569 SVal getBindingForLazySymbol(const TypedValueRegion *R); 1139 const TypedValueRegion *TR = cast<TypedValueRegion>(baseR); in VisitCluster() 1419 if (!isa<TypedValueRegion>(MR)) { in getBinding() 1430 T = cast<TypedValueRegion>(MR)->getValueType(); in getBinding() 1435 const TypedValueRegion *R = cast<TypedValueRegion>(MR); in getBinding() 1524 if (const TypedValueRegion *TVR = dyn_cast<TypedValueRegion>(R)) in getUnderlyingType() 1959 if (const TypedValueRegion *baseR = dyn_cast<TypedValueRegion>(O.getRegion())) in getBindingForElement() 2141 if (const TypedValueRegion *typedSuperR = in getBindingForFieldOrElementCommon() 2381 if (const TypedValueRegion* TR = dyn_cast<TypedValueRegion>(R)) { in bind() [all …]
|
| H A D | Store.cpp | 106 if (const auto *TR = dyn_cast<TypedValueRegion>(R)) { in castRegion() 236 const auto *TVR = dyn_cast<TypedValueRegion>(MR); in regionMatchesCXXRecordType() 310 if (const auto *TVR = dyn_cast<TypedValueRegion>(MR)) in getCXXRecordType() 392 if (isa<TypedValueRegion>(MR)) in evalBaseToDerived()
|
| H A D | MemRegion.cpp | 431 void TypedValueRegion::anchor() {} in anchor() 759 QualType Ty = cast<TypedValueRegion>(SR)->getDesugaredValueType(Ctx); in getStaticSize() 773 QualType Ty = cast<TypedValueRegion>(SR)->getDesugaredValueType(Ctx); in getStaticSize() 939 const TypedValueRegion *OrigR = I.getOriginalRegion(); in getStackOrCaptureRegionForDeclContext() 1187 const TypedValueRegion *Super, in isValidBaseClass() 1210 if (isa<TypedValueRegion>(Super)) { in getCXXBaseObjectRegion() 1211 assert(isValidBaseClass(RD, cast<TypedValueRegion>(Super), IsVirtual)); in getCXXBaseObjectRegion() 1342 R = cast<TypedValueRegion>(R)->getSuperRegion(); in StripCasts() 1479 if (const auto *TVR = dyn_cast<TypedValueRegion>(R)) { in calculateOffset()
|
| H A D | BasicValueFactory.cpp | 40 const TypedValueRegion *region) { in Profile() 145 const TypedValueRegion *region) { in getLazyCompoundValData()
|
| H A D | SymbolManager.cpp | 167 SymbolManager::getRegionValueSymbol(const TypedValueRegion* R) { in getRegionValueSymbol() 203 const TypedValueRegion *R) { in getDerivedSymbol()
|
| H A D | ExprEngineObjC.cpp | 60 if (const auto *R = dyn_cast<TypedValueRegion>(MV->getRegion())) { in populateObjCForDestinationSet()
|
| H A D | ProgramState.cpp | 253 if (const TypedValueRegion *TR = dyn_cast<TypedValueRegion>(R)) { in getSValAsScalarOrLoc()
|
| H A D | SVals.cpp | 197 const TypedValueRegion *nonloc::LazyCompoundVal::getRegion() const { in getRegion()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | InnerPointerChecker.cpp | 178 dyn_cast_or_null<TypedValueRegion>(Arg.getAsRegion()); in checkFunctionArguments() 211 const TypedValueRegion *ObjRegion = nullptr; in checkPostCall() 214 ObjRegion = dyn_cast_or_null<TypedValueRegion>( in checkPostCall() 231 dyn_cast_or_null<TypedValueRegion>(Call.getArgSVal(0).getAsRegion()); in checkPostCall() 318 const auto *TypedRegion = cast<TypedValueRegion>(ObjRegion); in VisitNode()
|
| H A D | BoolAssignmentChecker.cpp | 63 const TypedValueRegion *TR = in checkBind() 64 dyn_cast_or_null<TypedValueRegion>(loc.getAsRegion()); in checkBind()
|
| H A D | DereferenceChecker.cpp | 291 const TypedValueRegion *TVR = dyn_cast_or_null<TypedValueRegion>(MR); in checkBind()
|
| H A D | DeleteWithNonVirtualDtorChecker.cpp | 68 const auto *BaseClassRegion = MR->getAs<TypedValueRegion>(); in checkPreStmt()
|
| H A D | Taint.cpp | 206 const TypedValueRegion *R = SD->getRegion(); in isTainted()
|
| H A D | NullabilityChecker.cpp | 537 dyn_cast_or_null<TypedValueRegion>(Location.getAsRegion()); in checkLocation() 1096 const TypedValueRegion *TVR = in checkBind() 1097 dyn_cast_or_null<TypedValueRegion>(L.getAsRegion()); in checkBind()
|
| H A D | CStringChecker.cpp | 1078 << cast<TypedValueRegion>(MR)->getValueType(); in SummarizeRegion() 1081 os << "a variable of type" << cast<TypedValueRegion>(MR)->getValueType(); in SummarizeRegion() 1084 os << "a parameter of type" << cast<TypedValueRegion>(MR)->getValueType(); in SummarizeRegion() 1087 os << "a field of type " << cast<TypedValueRegion>(MR)->getValueType(); in SummarizeRegion() 1091 << cast<TypedValueRegion>(MR)->getValueType(); in SummarizeRegion()
|
| /llvm-project-15.0.7/clang/unittests/StaticAnalyzer/ |
| H A D | TestReturnValueUnderConstruction.cpp | 39 const auto *RetReg = cast<TypedValueRegion>(RetVal->getAsRegion()); in checkPostCall()
|