reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Derived Classes

unittests/Support/Casting.cpp
   46 struct derived : public base {

References

include/llvm/Support/Casting.h
   57   static inline bool doit(const From &Val) {
   66   static inline bool doit(const From &) { return true; }
   70   static inline bool doit(const From &Val) {
   71     return isa_impl<To, From>::doit(Val);
   71     return isa_impl<To, From>::doit(Val);
   83   static inline bool doit(const std::unique_ptr<From> &Val) {
   85     return isa_impl_cl<To, From>::doit(*Val);
   85     return isa_impl_cl<To, From>::doit(*Val);
  104   static inline bool doit(const From *Val) {
  106     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,
  168   using ret_type = const To &; // Normal case, return Ty&
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  186   using PointerType = typename cast_retty_impl<To, From *>::ret_type;
  186   using PointerType = typename cast_retty_impl<To, From *>::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) {
  270 inline typename cast_retty<X, std::unique_ptr<Y>>::ret_type
  270 inline typename cast_retty<X, std::unique_ptr<Y>>::ret_type
  271 cast(std::unique_ptr<Y> &&Val) {
  273   using ret_type = typename cast_retty<X, std::unique_ptr<Y>>::ret_type;
  273   using ret_type = typename cast_retty<X, std::unique_ptr<Y>>::ret_type;
  275       cast_convert_val<X, Y *, typename simplify_type<Y *>::SimpleType>::doit(
  275       cast_convert_val<X, Y *, typename simplify_type<Y *>::SimpleType>::doit(
  275       cast_convert_val<X, Y *, typename simplify_type<Y *>::SimpleType>::doit(
  377 LLVM_NODISCARD inline auto unique_dyn_cast(std::unique_ptr<Y> &Val)
  378     -> decltype(cast<X>(Val)) {
  379   if (!isa<X>(Val))
  381   return cast<X>(std::move(Val));
  385 LLVM_NODISCARD inline auto unique_dyn_cast(std::unique_ptr<Y> &&Val)
  386     -> decltype(cast<X>(Val)) {
  387   return unique_dyn_cast<X, Y>(Val);
  387   return unique_dyn_cast<X, Y>(Val);
unittests/Support/Casting.cpp
   46 struct derived : public base {
   47   static bool classof(const base *B) { return true; }
   58   static inline bool doit(const T &Val) { return false; }
  197 std::unique_ptr<base> newb() { return std::make_unique<derived>(); }
  212   auto B = unique_dyn_cast<base>(NewD);
  218   auto NewB = unique_dyn_cast<base>(B);
  241   auto B3 = unique_dyn_cast<base>(newb());
usr/include/c++/7.4.0/bits/unique_ptr.h
   68         default_delete(const default_delete<_Up>&) noexcept { }
   72       operator()(_Tp* __ptr) const
   74 	static_assert(!is_void<_Tp>::value,
   76 	static_assert(sizeof(_Tp)>0,
  122 	  using type = _Up*;
  137       using pointer = typename _Ptr<_Tp, _Dp>::type;
  161 	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
  163       __uniq_ptr_impl<_Tp, _Dp> _M_t;
  166       using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
  167       using element_type  = _Tp;
  252 	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
  694     operator==(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
  711     operator!=(nullptr_t, const unique_ptr<_Tp, _Dp>& __x) noexcept
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
 1554     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1645     { typedef _Tp&   type; };
 1650     : public __add_lvalue_reference_helper<_Tp>
 1983     { typedef _Up     type; };
utils/unittest/googletest/include/gtest/gtest-printers.h
  407                     T* p, ::std::ostream* os) {
  416     if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) {