Home
last modified time | relevance | path

Searched refs:__is_const (Results 1 – 8 of 8) sorted by relevance

/llvm-project-15.0.7/libcxx/include/__type_traits/
H A Dis_const.h21 #if __has_builtin(__is_const)
24 struct _LIBCPP_TEMPLATE_VIS is_const : _BoolConstant<__is_const(_Tp)> { };
28 inline constexpr bool is_const_v = __is_const(_Tp);
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dtype-traits.cpp1044 int t01[T(__is_const(cvoid))]; in is_const()
1068 int t30[F(__is_const(char))]; in is_const()
1069 int t31[F(__is_const(int))]; in is_const()
1070 int t32[F(__is_const(long))]; in is_const()
1071 int t33[F(__is_const(short))]; in is_const()
1074 int t36[F(__is_const(bool))]; in is_const()
1075 int t37[F(__is_const(float))]; in is_const()
1076 int t38[F(__is_const(double))]; in is_const()
1083 int t45[F(__is_const(void))]; in is_const()
1086 int t48[F(__is_const(Enum))]; in is_const()
[all …]
H A Dsizeless-1.cpp519 _Static_assert(!__is_const(svint8_t), ""); in cxx_only()
520 _Static_assert(__is_const(const svint8_t), ""); in cxx_only()
521 _Static_assert(__is_const(const volatile svint8_t), ""); in cxx_only()
/llvm-project-15.0.7/clang/test/PCH/
H A Dcxx-traits.h29 struct __is_const {}; // expected-warning {{made available}} struct
H A Dcxx-traits.cpp27 bool _is_const_result = __is_const(int);
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DTokenKinds.def540 TYPE_TRAIT_1(__is_const, IsConst, KEYCXX)
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseExpr.cpp1074 REVERTIBLE_TYPE_TRAIT(__is_const); in ParseCastExpression()
/llvm-project-15.0.7/clang/docs/
H A DLanguageExtensions.rst1401 * ``__is_const`` (C++, Embarcadero)