| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | builtins-elementwise-math.cpp | 12 template <class T> struct is_const : false_type {}; struct 13 template <class T> struct is_const<const T> : true_type {}; struct 20 static_assert(!is_const<decltype(__builtin_elementwise_abs(a))>::value); in test_builtin_elementwise_abs() 21 static_assert(!is_const<decltype(__builtin_elementwise_abs(b))>::value); in test_builtin_elementwise_abs() 43 static_assert(!is_const<decltype(__builtin_elementwise_max(a, b))>::value); in test_builtin_elementwise_max() 44 static_assert(!is_const<decltype(__builtin_elementwise_max(b, a))>::value); in test_builtin_elementwise_max() 45 static_assert(!is_const<decltype(__builtin_elementwise_max(a, a))>::value); in test_builtin_elementwise_max() 51 static_assert(!is_const<decltype(__builtin_elementwise_min(a, b))>::value); in test_builtin_elementwise_min() 52 static_assert(!is_const<decltype(__builtin_elementwise_min(b, a))>::value); in test_builtin_elementwise_min() 59 static_assert(!is_const<decltype(__builtin_elementwise_ceil(a))>::value); in test_builtin_elementwise_ceil() [all …]
|
| H A D | static-assert.cpp | 104 struct is_const : public false_type {}; struct 106 struct is_const<Tp const> : public true_type {}; struct 129 static_assert(std::is_const<ExampleTypes::T>::value, "message"); 131 static_assert(!std::is_const<const ExampleTypes::T>::value, "message"); 133 static_assert(!(std::is_const<const ExampleTypes::T>::value), "message"); 139 static_assert(std::is_const<ExampleTypes::T>(), "message"); 141 static_assert(!(std::is_const<const ExampleTypes::T>()()), "message"); 149 static_assert(std::is_const<decltype(ExampleTypes(3))>::value, "message"); 188 static_assert(std::is_const<T>::value, "message"); in foo3() 190 static_assert(std::is_const<decltype(t)>::value, "message"); in foo3() [all …]
|
| H A D | pr51171-crash.cpp | 6 template <bool is_const, typename tag_t = void> 10 template <bool is_const> 11 auto &val(const tv_val<is_const> &val) { return val.val(); } // expected-note {{possible target for… in val() 14 template <bool is_const> 16 tv_val<is_const> val;
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/ |
| H A D | is_const.pass.cpp | 19 static_assert(!std::is_const<T>::value, ""); in test_is_const() 20 static_assert( std::is_const<const T>::value, ""); in test_is_const() 21 static_assert(!std::is_const<volatile T>::value, ""); in test_is_const() 22 static_assert( std::is_const<const volatile T>::value, ""); in test_is_const() 45 static_assert(!std::is_const<int&>::value, ""); in main() 46 static_assert(!std::is_const<const int&>::value, ""); in main()
|
| /llvm-project-15.0.7/libcxx/include/__type_traits/ |
| H A D | is_const.h | 24 struct _LIBCPP_TEMPLATE_VIS is_const : _BoolConstant<__is_const(_Tp)> { }; struct 33 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_const : public false_type {}; 34 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_const<_Tp const> : public true_type {}; 38 inline constexpr bool is_const_v = is_const<_Tp>::value;
|
| H A D | is_function.h | 32 : public integral_constant<bool, !(is_reference<_Tp>::value || is_const<const _Tp>::value)> {};
|
| H A D | apply_cv.h | 25 template <class _Tp, class _Up, bool = is_const<typename remove_reference<_Tp>::type>::value,
|
| /llvm-project-15.0.7/libcxx/test/std/utilities/utility/as_const/ |
| H A D | as_const.pass.cpp | 26 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const … in test() 27 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const< T… in test() 28 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<const T… in test() 29 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<volatile T… in test() 30 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<const volatile T… in test()
|
| /llvm-project-15.0.7/clang/test/SemaTemplate/ |
| H A D | temp_class_spec.cpp | 35 struct is_const { struct 40 struct is_const<const T> { struct 44 int is_const0[is_const<int>::value? -1 : 1]; argument 45 int is_const1[is_const<const int>::value? 1 : -1]; 46 int is_const2[is_const<const volatile int>::value? 1 : -1]; 47 int is_const3[is_const<const int [3]>::value? 1 : -1]; 48 int is_const4[is_const<const volatile int[3]>::value? 1 : -1]; 49 int is_const5[is_const<volatile int[3]>::value? -1 : 1];
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | ThreadLocalTest.cpp | 29 std::is_const<std::remove_pointer<decltype(x.get())>::type>::value, in TEST_F() 44 !std::is_const<std::remove_pointer<decltype(y.get())>::type>::value, in TEST_F()
|
| /llvm-project-15.0.7/clang/test/CodeGenCXX/ |
| H A D | cxx2a-consteval.cpp | 163 consteval Agg is_const() { in is_const() function 180 long b = is_const().b; in test_is_const()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/NVPTX/ |
| H A D | isspacep.ll | 9 ; CHECK: is_const 10 define i1 @is_const(i8* %addr) {
|
| /llvm-project-15.0.7/libcxx/test/support/ |
| H A D | propagate_value_category.hpp | 66 return std::is_const<Vp>::value && std::is_volatile<Vp>::value in getCVQuals() 68 : (std::is_const<Vp>::value in getCVQuals()
|
| H A D | min_allocator.h | 228 !std::is_const<T>::value
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | DenseSetTest.cpp | 17 static_assert(std::is_const<std::remove_pointer< 20 static_assert(std::is_const<std::remove_reference<
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/ |
| H A D | hsa-metadata-deduce-ro-arg-v3.ll | 6 ; CHECK-NEXT: .is_const: true
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/ |
| H A D | CheckerRegistryData.h | 176 std::conditional_t<std::is_const<CheckerOrPackageInfoList>::value,
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | array | 271 typedef typename conditional<is_const<_Tp>::value, const char, 285 static_assert(!is_const<_Tp>::value, 291 static_assert(!is_const<_Tp>::value,
|
| H A D | __tuple | 40 __enable_if_t<!is_const<_Tp>::value>, 333 is_const<_RawTp>::value,
|
| H A D | type_traits | 60 template <class T> struct is_const; 293 = is_const<T>::value; // C++17 453 #include <__type_traits/is_const.h>
|
| /llvm-project-15.0.7/clang/test/Misc/ |
| H A D | diag-template-diffing.cpp | 1247 struct is_const { 1251 using T = condition<(is_const())>;
|
| /llvm-project-15.0.7/llvm/lib/Target/DirectX/ |
| H A D | DXIL.td | 44 bit is_const =
|
| /llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/internal/ |
| H A D | gmock-internal-utils.h | 390 static_assert(!std::is_const<RawContainer>::value,
|
| /llvm-project-15.0.7/clang/test/Analysis/Inputs/ |
| H A D | system-header-simulator-cxx.h | 712 template <class _Tp> struct is_const : public false_type {}; 713 template <class _Tp> struct is_const<_Tp const> : public true_type {}; 721 template <class _Tp, bool = is_const<_Tp>::value || is_reference<_Tp>::value >
|
| /llvm-project-15.0.7/flang/unittests/Evaluate/ |
| H A D | ISO-Fortran-binding.cpp | 20 MATCH(false, std::is_const<type>::value); in Check()
|