Home
last modified time | relevance | path

Searched refs:is_const (Results 1 – 25 of 43) sorted by relevance

12

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dbuiltins-elementwise-math.cpp12 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 Dstatic-assert.cpp104 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 Dpr51171-crash.cpp6 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 Dis_const.pass.cpp19 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 Dis_const.h24 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 Dis_function.h32 : public integral_constant<bool, !(is_reference<_Tp>::value || is_const<const _Tp>::value)> {};
H A Dapply_cv.h25 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 Das_const.pass.cpp26 …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 Dtemp_class_spec.cpp35 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 DThreadLocalTest.cpp29 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 Dcxx2a-consteval.cpp163 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 Disspacep.ll9 ; CHECK: is_const
10 define i1 @is_const(i8* %addr) {
/llvm-project-15.0.7/libcxx/test/support/
H A Dpropagate_value_category.hpp66 return std::is_const<Vp>::value && std::is_volatile<Vp>::value in getCVQuals()
68 : (std::is_const<Vp>::value in getCVQuals()
H A Dmin_allocator.h228 !std::is_const<T>::value
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DDenseSetTest.cpp17 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 Dhsa-metadata-deduce-ro-arg-v3.ll6 ; CHECK-NEXT: .is_const: true
/llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/
H A DCheckerRegistryData.h176 std::conditional_t<std::is_const<CheckerOrPackageInfoList>::value,
/llvm-project-15.0.7/libcxx/include/
H A Darray271 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__tuple40 __enable_if_t<!is_const<_Tp>::value>,
333 is_const<_RawTp>::value,
H A Dtype_traits60 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 Ddiag-template-diffing.cpp1247 struct is_const {
1251 using T = condition<(is_const())>;
/llvm-project-15.0.7/llvm/lib/Target/DirectX/
H A DDXIL.td44 bit is_const =
/llvm-project-15.0.7/llvm/utils/unittest/googlemock/include/gmock/internal/
H A Dgmock-internal-utils.h390 static_assert(!std::is_const<RawContainer>::value,
/llvm-project-15.0.7/clang/test/Analysis/Inputs/
H A Dsystem-header-simulator-cxx.h712 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 DISO-Fortran-binding.cpp20 MATCH(false, std::is_const<type>::value); in Check()

12