|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/Support/Casting.h 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;
tools/clang/lib/Analysis/PathDiagnostic.cpp 95 auto &Macro = cast<PathDiagnosticMacroPiece>(*Piece);
95 auto &Macro = cast<PathDiagnosticMacroPiece>(*Piece);
196 else if (const auto *macro = dyn_cast<PathDiagnosticMacroPiece>(piece))
196 else if (const auto *macro = dyn_cast<PathDiagnosticMacroPiece>(piece))
244 static Optional<bool> compareMacro(const PathDiagnosticMacroPiece &X,
245 const PathDiagnosticMacroPiece &Y) {
299 return compareMacro(cast<PathDiagnosticMacroPiece>(X),
300 cast<PathDiagnosticMacroPiece>(Y));
tools/clang/lib/StaticAnalyzer/Core/BugReporter.cpp 385 removeRedundantMsgs(cast<PathDiagnosticMacroPiece>(*piece).subPieces);
444 auto ¯o = cast<PathDiagnosticMacroPiece>(*piece);
444 auto ¯o = cast<PathDiagnosticMacroPiece>(*piece);
528 if (auto *M = dyn_cast<PathDiagnosticMacroPiece>(I->get()))
528 if (auto *M = dyn_cast<PathDiagnosticMacroPiece>(I->get()))
562 if (auto *M = dyn_cast<PathDiagnosticMacroPiece>(I->get()))
562 if (auto *M = dyn_cast<PathDiagnosticMacroPiece>(I->get()))
2602 std::pair<std::shared_ptr<PathDiagnosticMacroPiece>, SourceLocation>>;
2643 std::shared_ptr<PathDiagnosticMacroPiece> MacroGroup;
2666 auto NewGroup = std::make_shared<PathDiagnosticMacroPiece>(
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp 90 const PathDiagnosticMacroPiece& P,
811 if (!isa<PathDiagnosticMacroPiece>(P)) {
879 if (const auto *MP = dyn_cast<PathDiagnosticMacroPiece>(&P)) {
879 if (const auto *MP = dyn_cast<PathDiagnosticMacroPiece>(&P)) {
971 const PathDiagnosticMacroPiece& P,
974 if (const auto *MP = dyn_cast<PathDiagnosticMacroPiece>(subPiece.get())) {
974 if (const auto *MP = dyn_cast<PathDiagnosticMacroPiece>(subPiece.get())) {
tools/clang/lib/StaticAnalyzer/Core/PlistDiagnostics.cpp 80 llvm::SmallVector<const PathDiagnosticMacroPiece *, 0> MacroPieces;
122 ReportMacroSubPieces(o, cast<PathDiagnosticMacroPiece>(P), indent,
146 void ReportMacroSubPieces(raw_ostream &o, const PathDiagnosticMacroPiece& P,
378 const PathDiagnosticMacroPiece& P,
394 for (const PathDiagnosticMacroPiece *P : MacroPieces) {
638 } else if (const PathDiagnosticMacroPiece *Macro =
639 dyn_cast<PathDiagnosticMacroPiece>(&Piece)) {
usr/include/c++/7.4.0/bits/alloc_traits.h 387 using allocator_type = allocator<_Tp>;
389 using value_type = _Tp;
392 using pointer = _Tp*;
395 using const_pointer = const _Tp*;
474 construct(allocator_type& __a, _Up* __p, _Args&&... __args)
486 destroy(allocator_type& __a, _Up* __p)
usr/include/c++/7.4.0/bits/allocator.h 108 class allocator: public __allocator_base<_Tp>
113 typedef _Tp* pointer;
114 typedef const _Tp* const_pointer;
115 typedef _Tp& reference;
116 typedef const _Tp& const_reference;
117 typedef _Tp value_type;
137 allocator(const allocator<_Tp1>&) throw() { }
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;
236 shared_ptr(const shared_ptr<_Yp>& __r) noexcept
253 shared_ptr(shared_ptr<_Yp>&& __r) noexcept
299 _Assignable<const shared_ptr<_Yp>&>
300 operator=(const shared_ptr<_Yp>& __r) noexcept
324 _Assignable<shared_ptr<_Yp>>
325 operator=(shared_ptr<_Yp>&& __r) noexcept
352 shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
687 inline shared_ptr<_Tp>
702 inline shared_ptr<_Tp>
705 typedef typename std::remove_const<_Tp>::type _Tp_nc;
706 return std::allocate_shared<_Tp>(std::allocator<_Tp_nc>(),
usr/include/c++/7.4.0/bits/shared_ptr_base.h 882 : is_convertible<_Yp*, _Tp*>::type
882 : 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;
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
1321 rebind_traits<typename std::remove_cv<_Tp>::type> __traits;
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*) noexcept
usr/include/c++/7.4.0/ext/new_allocator.h 63 typedef _Tp* pointer;
64 typedef const _Tp* const_pointer;
65 typedef _Tp& reference;
66 typedef const _Tp& const_reference;
67 typedef _Tp value_type;
84 new_allocator(const new_allocator<_Tp1>&) _GLIBCXX_USE_NOEXCEPT { }
111 return static_cast<_Tp*>(::operator new(__n * sizeof(_Tp)));
130 { return size_t(-1) / sizeof(_Tp); }
135 construct(_Up* __p, _Args&&... __args)
136 { ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
140 destroy(_Up* __p) { __p->~_Up(); }
usr/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; };