reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
58 return To::classof(&Val); 77 return isa_impl<To, From>::doit(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, 165 using ret_type = To &; // Normal case, return Ty& 168 using ret_type = const To &; // Normal case, return Ty& 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) { 258 return cast_convert_val<X, Y, 263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) { 265 return cast_convert_val<X, Y*, 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;include/llvm/Support/PointerLikeTypeTraits.h
56 static inline void *getAsVoidPointer(T *P) { return P; } 57 static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); } 59 enum { NumLowBitsAvailable = detail::ConstantLog2<alignof(T)>::value }; 91 typedef PointerLikeTypeTraits<T *> NonConst; 93 static inline const void *getAsVoidPointer(const T *P) { 96 static inline const T *getFromVoidPointer(const void *P) {tools/clang/include/clang/Analysis/PathDiagnostic.h
580 static std::shared_ptr<PathDiagnosticCallPiece> 584 static PathDiagnosticCallPiece *construct(PathPieces &pieces,tools/clang/lib/Analysis/PathDiagnostic.cpp
86 auto &Call = cast<PathDiagnosticCallPiece>(*Piece); 86 auto &Call = cast<PathDiagnosticCallPiece>(*Piece); 194 if (const auto *call = dyn_cast<PathDiagnosticCallPiece>(piece)) 194 if (const auto *call = dyn_cast<PathDiagnosticCallPiece>(piece)) 249 static Optional<bool> compareCall(const PathDiagnosticCallPiece &X, 250 const PathDiagnosticCallPiece &Y) { 302 return compareCall(cast<PathDiagnosticCallPiece>(X), 303 cast<PathDiagnosticCallPiece>(Y)); 830 std::shared_ptr<PathDiagnosticCallPiece> 838 new PathDiagnosticCallPiece(caller, pos)); 841 PathDiagnosticCallPiece * 844 std::shared_ptr<PathDiagnosticCallPiece> C( 845 new PathDiagnosticCallPiece(path, caller)); 847 auto *R = C.get(); 1052 if (const auto *cp = dyn_cast<PathDiagnosticCallPiece>(piece)) 1052 if (const auto *cp = dyn_cast<PathDiagnosticCallPiece>(piece))tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
96 std::pair<PathDiagnosticCallPiece *, const ExplodedNode *>; 382 removeRedundantMsgs(cast<PathDiagnosticCallPiece>(*piece).path); 433 auto &call = cast<PathDiagnosticCallPiece>(*piece); 433 auto &call = cast<PathDiagnosticCallPiece>(*piece); 493 auto *Call = dyn_cast<PathDiagnosticCallPiece>(I.get()); 493 auto *Call = dyn_cast<PathDiagnosticCallPiece>(I.get()); 525 if (auto *C = dyn_cast<PathDiagnosticCallPiece>(I->get())) 525 if (auto *C = dyn_cast<PathDiagnosticCallPiece>(I->get())) 559 if (auto *C = dyn_cast<PathDiagnosticCallPiece>(I->get())) 559 if (auto *C = dyn_cast<PathDiagnosticCallPiece>(I->get())) 722 PathDiagnosticCallPiece *CP = I.first; 1149 PathDiagnosticCallPiece *Call; 1151 Call = cast<PathDiagnosticCallPiece>(C.getActivePath().front().get()); 1156 Call = PathDiagnosticCallPiece::construct(C.getActivePath(), Caller); 1195 auto Call = PathDiagnosticCallPiece::construct(*CE, SM); 1208 auto *P = Call.get(); 1403 using OptimizedCallsSet = llvm::DenseSet<const PathDiagnosticCallPiece *>; 1763 if (auto *CallI = dyn_cast<PathDiagnosticCallPiece>(I->get())) { 1763 if (auto *CallI = dyn_cast<PathDiagnosticCallPiece>(I->get())) { 2614 if (auto *call = dyn_cast<PathDiagnosticCallPiece>(&*piece)) { 2614 if (auto *call = dyn_cast<PathDiagnosticCallPiece>(&*piece)) { 3129 static PathDiagnosticCallPiece * 3130 getFirstStackedCallToHeaderFile(PathDiagnosticCallPiece *CP, 3151 if (auto *CPInner = dyn_cast<PathDiagnosticCallPiece>(Path.back().get())) 3151 if (auto *CPInner = dyn_cast<PathDiagnosticCallPiece>(Path.back().get())) 3168 if (auto *CP = dyn_cast<PathDiagnosticCallPiece>(LastP)) { 3168 if (auto *CP = dyn_cast<PathDiagnosticCallPiece>(LastP)) {tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp
114 ReportCall(o, cast<PathDiagnosticCallPiece>(P), indent, 144 void ReportCall(raw_ostream &o, const PathDiagnosticCallPiece &P, 350 void PlistPrinter::ReportCall(raw_ostream &o, const PathDiagnosticCallPiece &P, 629 if (const PathDiagnosticCallPiece *Call = 630 dyn_cast<PathDiagnosticCallPiece>(&Piece)) {usr/include/c++/7.4.0/bits/shared_ptr.h
93 class shared_ptr : public __shared_ptr<_Tp> 107 using element_type = typename __shared_ptr<_Tp>::element_type; 129 shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { } 236 shared_ptr(const shared_ptr<_Yp>& __r) noexcept 253 shared_ptr(shared_ptr<_Yp>&& __r) noexcept 352 shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)usr/include/c++/7.4.0/bits/shared_ptr_base.h
882 : is_convertible<_Yp*, _Tp*>::type 882 : is_convertible<_Yp*, _Tp*>::type 946 : is_convertible<_Yp*, _Tp*>::type 946 : is_convertible<_Yp*, _Tp*>::type 956 using element_type = _Tp; 1035 : public __shared_ptr_access<_Tp, _Lp> 1038 using element_type = typename remove_extent<_Tp>::type; 1078 __shared_ptr(_Yp* __p) 1081 static_assert( !is_void<_Yp>::value, "incomplete type" ); 1082 static_assert( sizeof(_Yp) > 0, "incomplete type" ); 1126 __shared_ptr(const __shared_ptr<_Yp, _Lp>& __r) noexcept 1138 __shared_ptr(__shared_ptr<_Yp, _Lp>&& __r) noexcept 1192 _Assignable<_Yp> 1193 operator=(const __shared_ptr<_Yp, _Lp>& __r) noexcept 1218 _Assignable<_Yp> 1219 operator=(__shared_ptr<_Yp, _Lp>&& __r) noexcept 1272 swap(__shared_ptr<_Tp, _Lp>& __other) noexcept 1344 __shared_ptr(const __weak_ptr<_Tp, _Lp>& __r, std::nothrow_t) 1377 typename enable_if<!__has_esft_base<_Yp2>::value>::type 1378 _M_enable_shared_from_this_with(_Yp*) noexceptusr/include/c++/7.4.0/type_traits
215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type 1554 { typedef _Tp type; }; 1563 { typedef _Tp type; }; 1574 remove_const<typename remove_volatile<_Tp>::type>::type type; 1942 { typedef _Tp type; };