reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
344 class ErrorInfo : public ParentErrT {
83 return isA(ErrorInfoT::classID()); 242 return getPtr() && getPtr()->isA(ErrT::classID()); 331 return Error(std::make_unique<ErrT>(std::forward<ArgTs>(Args)...)); 344 class ErrorInfo : public ParentErrT { 348 static const void *classID() { return &ThisErrT::ID; } 350 const void *dynamicClassID() const override { return &ThisErrT::ID; } 790 return E.template isA<ErrT>(); 804 return E.template isA<ErrT>(); 820 return E.template isA<ErrT>(); 826 std::unique_ptr<ErrT> SubE(static_cast<ErrT *>(E.release())); 836 return E.template isA<ErrT>(); 842 std::unique_ptr<ErrT> SubE(static_cast<ErrT *>(E.release())); 851 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {}; 856 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {}; 861 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {}; 866 : public ErrorHandlerTraits<RetT (&)(ErrT &)> {}; 872 : public ErrorHandlerTraits<RetT (&)(std::unique_ptr<ErrT>)> {}; 878 : public ErrorHandlerTraits<RetT (&)(std::unique_ptr<ErrT>)> {};include/llvm/Testing/Support/Error.h
87 explicit ErrorMatchesMono(Optional<testing::Matcher<InfoT &>> Matcher) 101 if (!Info.isA<InfoT>()) { 129 Optional<testing::Matcher<InfoT &>> Matcher; 148 return MakeMatcher(new detail::ErrorMatchesMono<InfoT>(None)); 153 return MakeMatcher(new detail::ErrorMatchesMono<InfoT>( 154 testing::SafeMatcherCast<InfoT &>(Matcher)));unittests/Support/ErrorTest.cpp
26 class CustomError : public ErrorInfo<CustomError> { 60 class CustomSubError : public ErrorInfo<CustomSubError, CustomError> { 88 static Error handleCustomError(const CustomError &CE) { 92 static void handleCustomErrorVoid(const CustomError &CE) {} 94 static Error handleCustomErrorUP(std::unique_ptr<CustomError> CE) { 98 static void handleCustomErrorUPVoid(std::unique_ptr<CustomError> CE) {} 148 Error E = make_error<CustomError>(42); 160 Error E = make_error<CustomError>(1); 178 handleAllErrors(make_error<CustomError>(42), [&](const CustomError &CE) { 200 handleAllErrors(make_error<CustomError>(42), [](const CustomError &CE) {}); 203 make_error<CustomError>(42), 206 handleAllErrors(make_error<CustomError>(42), 209 handleAllErrors(make_error<CustomError>(42), 212 handleAllErrors(make_error<CustomError>(42), [](CustomError &CE) {}); 214 handleAllErrors(make_error<CustomError>(42), 217 handleAllErrors(make_error<CustomError>(42), [](CustomError &CE) mutable {}); 220 make_error<CustomError>(42), 223 handleAllErrors(make_error<CustomError>(42), 227 make_error<CustomError>(42), 230 handleAllErrors(make_error<CustomError>(42), 234 handleAllErrors(make_error<CustomError>(42), handleCustomError); 237 handleAllErrors(make_error<CustomError>(42), handleCustomErrorVoid); 240 handleAllErrors(make_error<CustomError>(42), handleCustomErrorUP); 243 handleAllErrors(make_error<CustomError>(42), handleCustomErrorUPVoid); 302 joinErrors(make_error<CustomError>(7), make_error<CustomSubError>(42, 7)); 329 joinErrors(make_error<CustomError>(7), 330 make_error<CustomError>(7)), 331 make_error<CustomError>(7)), 343 make_error<CustomError>(7), 344 joinErrors(make_error<CustomError>(7), 345 make_error<CustomError>(7))), 358 make_error<CustomError>(7), 359 make_error<CustomError>(7)), 361 make_error<CustomError>(7), 362 make_error<CustomError>(7))), 377 Error E = make_error<CustomError>(7); 386 handleAllErrors(make_error<CustomError>(7), [&](const CustomSubError &SE) { 406 handleAllErrors(make_error<CustomError>(7), 425 make_error<CustomError>(7), 587 Expected<int> A = make_error<CustomError>(42); 599 Expected<int> A = make_error<CustomError>(42); 652 return make_error<CustomError>(7); 730 Error E1 = make_error<CustomError>(0); 733 Error E2 = make_error<CustomError>(0); 738 Error E3 = joinErrors(make_error<CustomError>(0), make_error<CustomError>(1)); 738 Error E3 = joinErrors(make_error<CustomError>(0), make_error<CustomError>(1)); 755 Error E1 = make_error<CustomError>(0); 858 make_error<CustomError>(42)))), 881 Error E1 = make_error<CustomError>(1); 885 Error E2 = make_error<CustomError>(2); 891 Error E3 = make_error<CustomError>(3); 901 joinErrors(createFileError("file.bin", make_error<CustomError>(41)), 902 createFileError("file2.bin", make_error<CustomError>(42)));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 811 { typedef unique_ptr<_Tp> __single_object; }; 823 inline typename _MakeUniq<_Tp>::__single_object 825 { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }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>utils/unittest/googlemock/include/gmock/gmock-matchers.h
2261 bool MatchAndExplain(const T&value, MatchResultListener* listener) const { 2272 bool MatchAndExplainImpl(false_type /* is_not_pointer */, const Class& obj, 2288 bool MatchAndExplainImpl(true_type /* is_pointer */, const Class* p, 3931 internal::PropertyMatcher<Class, PropertyType> > Property(utils/unittest/googletest/include/gtest/internal/gtest-internal.h
795 struct RemoveConst { typedef T type; }; // NOLINT