Home
last modified time | relevance | path

Searched refs:__is_base_of (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/clang/test/SemaObjCXX/
H A Dis-base-of.mm9 static_assert(__is_base_of(NSObj, NSChild), "");
10 static_assert(!__is_base_of(NSChild, NSObj), "");
12 static_assert(__is_base_of(NSObj, NSObj), "");
14 static_assert(!__is_base_of(NSObj *, NSChild *), "");
15 static_assert(!__is_base_of(NSChild *, NSObj *), "");
17 static_assert(__is_base_of(const volatile NSObj, NSChild), "");
18 static_assert(__is_base_of(NSObj, const volatile NSChild), "");
22 static_assert(!__is_base_of(NSForward, NSObj), "");
23 static_assert(!__is_base_of(NSObj, NSForward), ""); // expected-error{{incomplete type 'NSForward'}}
25 static_assert(!__is_base_of(id, NSObj), "");
/llvm-project-15.0.7/libcxx/include/__type_traits/
H A Dis_base_of.h23 : public integral_constant<bool, __is_base_of(_Bp, _Dp)> {};
27 inline constexpr bool is_base_of_v = __is_base_of(_Bp, _Dp);
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dtype-traits.cpp1890 int t[T(__is_base_of(Base, Derived))]; in isBaseOfT()
1894 int t[F(__is_base_of(Base, Derived))]; in isBaseOfF()
1905 { int arr[F(__is_base_of(Derived, int))]; } in is_base_of()
1906 { int arr[T(__is_base_of(Base, Base))]; } in is_base_of()
1914 { int arr[F(__is_base_of(Union, Union))]; } in is_base_of()
1915 { int arr[T(__is_base_of(Empty, Empty))]; } in is_base_of()
1920 { int arr[F(__is_base_of(int, int))]; } in is_base_of()
1921 { int arr[F(__is_base_of(long, int))]; } in is_base_of()
1935 { int arr[F(__is_base_of(Empty, Union))]; } in is_base_of()
1937 { int arr[F(__is_base_of(int, Empty))]; } in is_base_of()
[all …]
H A Dsizeless-1.cpp479 _Static_assert(!__is_base_of(svint8_t, svint8_t), ""); in cxx_only()
/llvm-project-15.0.7/clang/test/Index/
H A Dannotate-tokens.cpp4 __is_base_of(bonk, bonk); in test()
/llvm-project-15.0.7/clang/test/PCH/
H A Dcxx-traits.h25 struct __is_base_of {}; // expected-warning {{made available}} struct
H A Dcxx-traits.cpp23 bool _is_base_of_result = __is_base_of(int, int);
/llvm-project-15.0.7/clang/test/CXX/temp/temp.decls/temp.variadic/
H A Dp5.cpp317 __is_base_of(Types, T); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
318 __is_base_of(T, Types); // expected-error{{expression contains unexpanded parameter pack 'Types'}} in test_unexpanded_exprs()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTokenKinds.def491 TYPE_TRAIT_2(__is_base_of, IsBaseOf, KEYCXX)
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseExpr.cpp1070 REVERTIBLE_TYPE_TRAIT(__is_base_of); in ParseCastExpression()
/llvm-project-15.0.7/clang/docs/
H A DLanguageExtensions.rst1394 * ``__is_base_of`` (C++, GNU, Microsoft, Embarcadero)
1496 * ``__is_base_of``