|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/Support/Allocator.h 81 template <typename T> T *Allocate(size_t Num = 1) {
82 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
82 return static_cast<T *>(Allocate(Num * sizeof(T), alignof(T)));
include/llvm/Support/Casting.h 58 return To::classof(&Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
172 using ret_type = To *; // Pointer arg case, return Ty*
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
305 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
309 return cast<X>(Val);
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/StaticAnalyzer/Checkers/SValExplainer.h 167 std::string VisitElementRegion(const ElementRegion *R) {
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/MemRegion.h 1228 const RegionTy* MemRegion::getAs() const {
1229 if (const auto *RT = dyn_cast<RegionTy>(this))
1229 if (const auto *RT = dyn_cast<RegionTy>(this))
1333 const ElementRegion *getElementRegion(QualType elementType, NonLoc Idx,
1337 const ElementRegion *getElementRegionWithSuper(const ElementRegion *ER,
1337 const ElementRegion *getElementRegionWithSuper(const ElementRegion *ER,
tools/clang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h 187 const ElementRegion *GetElementZeroRegion(const SubRegion *R, QualType T);
287 const ElementRegion *MakeElementRegion(const SubRegion *baseRegion,
tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundChecker.cpp 42 const ElementRegion *ER = dyn_cast<ElementRegion>(R);
42 const ElementRegion *ER = dyn_cast<ElementRegion>(R);
tools/clang/lib/StaticAnalyzer/Checkers/ArrayBoundCheckerV2.cpp 325 const ElementRegion *elemReg = cast<ElementRegion>(region);
325 const ElementRegion *elemReg = cast<ElementRegion>(region);
tools/clang/lib/StaticAnalyzer/Checkers/CStringChecker.cpp 323 const ElementRegion *ER = dyn_cast<ElementRegion>(R);
323 const ElementRegion *ER = dyn_cast<ElementRegion>(R);
929 const ElementRegion *ER = dyn_cast<ElementRegion>(R);
929 const ElementRegion *ER = dyn_cast<ElementRegion>(R);
969 if (const ElementRegion *ER = dyn_cast<ElementRegion>(R)) {
969 if (const ElementRegion *ER = dyn_cast<ElementRegion>(R)) {
tools/clang/lib/StaticAnalyzer/Checkers/MPI-Checker/MPIChecker.cpp 33 const ElementRegion *const ER = dyn_cast<ElementRegion>(MR);
33 const ElementRegion *const ER = dyn_cast<ElementRegion>(MR);
63 const ElementRegion *const ER = dyn_cast<ElementRegion>(MR);
63 const ElementRegion *const ER = dyn_cast<ElementRegion>(MR);
153 if (const ElementRegion *const ER = MR->getAs<ElementRegion>()) {
153 if (const ElementRegion *const ER = MR->getAs<ElementRegion>()) {
171 const ElementRegion *const ER = RegionManager->getElementRegion(
tools/clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp 2067 while (const ElementRegion *ER = dyn_cast_or_null<ElementRegion>(MR))
2067 while (const ElementRegion *ER = dyn_cast_or_null<ElementRegion>(MR))
2375 while (const ElementRegion *ER = dyn_cast_or_null<ElementRegion>(MR))
2375 while (const ElementRegion *ER = dyn_cast_or_null<ElementRegion>(MR))
2753 if (isa<FieldRegion>(MR) || isa<ElementRegion>(MR))
tools/clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp 286 if (auto ElementReg = Region->getAs<ElementRegion>())
tools/clang/lib/StaticAnalyzer/Checkers/PointerArithChecker.cpp 126 if (const auto *ElemRegion = dyn_cast<ElementRegion>(Region)) {
126 if (const auto *ElemRegion = dyn_cast<ElementRegion>(Region)) {
tools/clang/lib/StaticAnalyzer/Checkers/ReturnPointerRangeChecker.cpp 45 const ElementRegion *ER = dyn_cast_or_null<ElementRegion>(R);
45 const ElementRegion *ER = dyn_cast_or_null<ElementRegion>(R);
tools/clang/lib/StaticAnalyzer/Checkers/Taint.cpp 141 if (const ElementRegion *ER = dyn_cast<ElementRegion>(Reg))
141 if (const ElementRegion *ER = dyn_cast<ElementRegion>(Reg))
tools/clang/lib/StaticAnalyzer/Checkers/UndefResultChecker.cpp 48 const ElementRegion *ER = dyn_cast<ElementRegion>(MR);
48 const ElementRegion *ER = dyn_cast<ElementRegion>(MR);
tools/clang/lib/StaticAnalyzer/Checkers/ValistChecker.cpp 182 const auto *EReg = dyn_cast_or_null<ElementRegion>(Reg);
182 const auto *EReg = dyn_cast_or_null<ElementRegion>(Reg);
tools/clang/lib/StaticAnalyzer/Core/ExprEngineCXX.cpp 809 const ElementRegion *EleReg =
tools/clang/lib/StaticAnalyzer/Core/MemRegion.cpp 344 ElementRegion::ProfileRegion(ID, ElementType, Index, superRegion);
667 const ElementRegion *ER = nullptr;
668 while ((ER = R->getAs<ElementRegion>())) {
988 const ElementRegion*
995 ElementRegion::ProfileRegion(ID, T, Idx, superRegion);
999 auto *R = cast_or_null<ElementRegion>(data);
999 auto *R = cast_or_null<ElementRegion>(data);
1002 R = A.Allocate<ElementRegion>();
1003 new (R) ElementRegion(T, Idx, superRegion);
1201 const auto *ER = cast<ElementRegion>(R);
1201 const auto *ER = cast<ElementRegion>(R);
1232 const ElementRegion *ER = this;
1268 ER = dyn_cast<ElementRegion>(superR);
1399 const auto *ER = cast<ElementRegion>(R);
1399 const auto *ER = cast<ElementRegion>(R);
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp 563 SVal getBindingForElement(RegionBindingsConstRef B, const ElementRegion *R);
1523 if (const ElementRegion* ER = dyn_cast<ElementRegion>(R)) {
1523 if (const ElementRegion* ER = dyn_cast<ElementRegion>(R)) {
1639 if (const ElementRegion *ER = dyn_cast<ElementRegion>(R)) {
1639 if (const ElementRegion *ER = dyn_cast<ElementRegion>(R)) {
1669 const ElementRegion* R) {
1851 if (const ElementRegion *ER = dyn_cast<ElementRegion>(LazyBindingRegion))
1851 if (const ElementRegion *ER = dyn_cast<ElementRegion>(LazyBindingRegion))
1925 if (const ElementRegion *ER = dyn_cast<ElementRegion>(Base)) {
1925 if (const ElementRegion *ER = dyn_cast<ElementRegion>(Base)) {
1937 if (isa<ElementRegion>(R)) {
2271 const ElementRegion *ER = MRMgr.getElementRegion(ElementTy, Idx, R, Ctx);
2318 const ElementRegion *ER = MRMgr.getElementRegion(ElemType, Idx, R, Ctx);
tools/clang/lib/StaticAnalyzer/Core/SimpleSValBuilder.cpp 1016 const ElementRegion *RightER = dyn_cast<ElementRegion>(RightMR);
1016 const ElementRegion *RightER = dyn_cast<ElementRegion>(RightMR);
1017 const ElementRegion *LeftER = dyn_cast<ElementRegion>(LeftMR);
1017 const ElementRegion *LeftER = dyn_cast<ElementRegion>(LeftMR);
1177 if (const ElementRegion *elemReg = dyn_cast<ElementRegion>(region)) {
1177 if (const ElementRegion *elemReg = dyn_cast<ElementRegion>(region)) {
tools/clang/lib/StaticAnalyzer/Core/Store.cpp 60 const ElementRegion *StoreManager::MakeElementRegion(const SubRegion *Base,
67 const ElementRegion *StoreManager::GetElementZeroRegion(const SubRegion *R,
163 const ElementRegion *elementR = cast<ElementRegion>(R);
163 const ElementRegion *elementR = cast<ElementRegion>(R);
493 const auto *ElemR = dyn_cast<ElementRegion>(BaseRegion);
493 const auto *ElemR = dyn_cast<ElementRegion>(BaseRegion);
522 if (isa<ElementRegion>(BaseRegion->StripCasts()))
tools/clang/lib/StaticAnalyzer/Core/SymbolManager.cpp 414 if (const auto ER = dyn_cast<ElementRegion>(SR)) {