Searched refs:__is_base_of (Results 1 – 11 of 11) sorted by relevance
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | is-base-of.mm | 9 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 D | is_base_of.h | 23 : 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 D | type-traits.cpp | 1890 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 D | sizeless-1.cpp | 479 _Static_assert(!__is_base_of(svint8_t, svint8_t), ""); in cxx_only()
|
| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | annotate-tokens.cpp | 4 __is_base_of(bonk, bonk); in test()
|
| /llvm-project-15.0.7/clang/test/PCH/ |
| H A D | cxx-traits.h | 25 struct __is_base_of {}; // expected-warning {{made available}} struct
|
| H A D | cxx-traits.cpp | 23 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 D | p5.cpp | 317 __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 D | TokenKinds.def | 491 TYPE_TRAIT_2(__is_base_of, IsBaseOf, KEYCXX)
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseExpr.cpp | 1070 REVERTIBLE_TYPE_TRAIT(__is_base_of); in ParseCastExpression()
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | LanguageExtensions.rst | 1394 * ``__is_base_of`` (C++, GNU, Microsoft, Embarcadero) 1496 * ``__is_base_of``
|