Home
last modified time | relevance | path

Searched refs:static_assert (Results 1 – 25 of 699) sorted by relevance

12345678910>>...28

/src/contrib/googletest/googlemock/test/
H A Dgmock-pp_test.cc13 static_assert(GMOCK_PP_CAT(1, 4) == 14, "");
14 static_assert(GMOCK_PP_INTERNAL_INTERNAL_16TH(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
17 static_assert(GMOCK_PP_NARG() == 1, "");
18 static_assert(GMOCK_PP_NARG(x) == 1, "");
19 static_assert(GMOCK_PP_NARG(x, y) == 2, "");
20 static_assert(GMOCK_PP_NARG(x, y, z) == 3, "");
21 static_assert(GMOCK_PP_NARG(x, y, z, w) == 4, "");
22 static_assert(!GMOCK_PP_HAS_COMMA(), "");
23 static_assert(GMOCK_PP_HAS_COMMA(b, ), "");
24 static_assert(!GMOCK_PP_HAS_COMMA((, )), "");
[all …]
H A Dgmock-actions_test.cc69 static_assert(std::is_base_of<std::false_type, in TEST()
73 static_assert(std::is_base_of<std::true_type, in TEST()
79 static_assert(std::is_base_of< in TEST()
84 static_assert(std::is_base_of< in TEST()
89 static_assert(std::is_base_of< in TEST()
111 static_assert(std::is_base_of<std::true_type, internal::conjunction<>>::value, in TEST()
115 static_assert( in TEST()
119 static_assert( in TEST()
123 static_assert( in TEST()
128 static_assert( in TEST()
[all …]
/src/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DCmpInstAnalysis.h68 static_assert(CmpInst::FCMP_FALSE == 0); // 0 0 0 0 in getFCmpCode()
69 static_assert(CmpInst::FCMP_OEQ == 1); // 0 0 0 1 in getFCmpCode()
70 static_assert(CmpInst::FCMP_OGT == 2); // 0 0 1 0 in getFCmpCode()
71 static_assert(CmpInst::FCMP_OGE == 3); // 0 0 1 1 in getFCmpCode()
72 static_assert(CmpInst::FCMP_OLT == 4); // 0 1 0 0 in getFCmpCode()
73 static_assert(CmpInst::FCMP_OLE == 5); // 0 1 0 1 in getFCmpCode()
74 static_assert(CmpInst::FCMP_ONE == 6); // 0 1 1 0 in getFCmpCode()
75 static_assert(CmpInst::FCMP_ORD == 7); // 0 1 1 1 in getFCmpCode()
76 static_assert(CmpInst::FCMP_UNO == 8); // 1 0 0 0 in getFCmpCode()
77 static_assert(CmpInst::FCMP_UEQ == 9); // 1 0 0 1 in getFCmpCode()
[all …]
/src/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dcommon.h168 static_assert(offsetof(AllocatorState, VersionMagic) == 0, "");
169 static_assert(sizeof(AllocatorVersionMagic) == 8, "");
171 static_assert(sizeof(AllocatorState) == 56, "");
172 static_assert(offsetof(AllocatorState, FailureAddress) == 48, "");
173 static_assert(sizeof(AllocationMetadata) == 568, "");
174 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, "");
176 static_assert(sizeof(AllocatorState) == 56, "");
177 static_assert(offsetof(AllocatorState, FailureAddress) == 48, "");
178 static_assert(sizeof(AllocationMetadata) == 568, "");
179 static_assert(offsetof(AllocationMetadata, IsDeallocated) == 560, "");
[all …]
/src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIModeRegisterDefaults.cpp126 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode(
128 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode(
131 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode(
134 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode(
138 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode(
141 static_assert(decodeIndexFltRoundConversionTable(
144 static_assert(decodeIndexFltRoundConversionTable(
148 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode(
151 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode(
154 static_assert(decodeIndexFltRoundConversionTable(getModeRegisterRoundMode(
[all …]
/src/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_trace.h42 static_assert(sizeof(Event) == 8, "bad Event size");
51 static_assert(kPCBits + kCompressedAddrBits + 5 == 64,
61 static_assert(sizeof(EventAccess) == 8, "bad EventAccess size");
69 static_assert(sizeof(EventFunc) == 8, "bad EventFunc size");
80 static_assert(kCompressedAddrBits + kUnusedBits + 9 == 64,
93 static_assert(sizeof(EventAccessExt) == 16, "bad EventAccessExt size");
98 static_assert(kCompressedAddrBits + kSizeLoBits + 7 == 64,
111 static_assert(sizeof(EventAccessRange) == 16, "bad EventAccessRange size");
119 static_assert(kCompressedAddrBits + kStackIDLoBits + 5 == 64,
121 static_assert(kCompressedAddrBits + kStackIDHiBits + kUnusedBits == 64,
[all …]
/src/contrib/googletest/googlemock/include/gmock/
H A Dgmock-nice-strict.h153 static_assert(!internal::HasStrictnessModifier<MockClass>(),
159 static_assert(sizeof(*this) == sizeof(MockClass), in NiceMock()
172 static_assert(sizeof(*this) == sizeof(MockClass), in NiceMock()
180 static_assert(sizeof(*this) == sizeof(MockClass), in NiceMock()
193 static_assert(!internal::HasStrictnessModifier<MockClass>(),
201 static_assert(sizeof(*this) == sizeof(MockClass), in NaggyMock()
214 static_assert(sizeof(*this) == sizeof(MockClass), in NaggyMock()
222 static_assert(sizeof(*this) == sizeof(MockClass), in NaggyMock()
236 static_assert(
243 static_assert(sizeof(*this) == sizeof(MockClass), in StrictMock()
[all …]
/src/contrib/llvm-project/llvm/include/llvm/ADT/
H A Diterator.h130 static_assert(std::is_base_of<iterator_facade_base, DerivedT>::value,
132 static_assert(
140 static_assert(
146 static_assert(
155 static_assert(std::is_base_of<iterator_facade_base, DerivedT>::value,
165 static_assert(
171 static_assert(
186 static_assert(
193 static_assert(
199 static_assert(
[all …]
H A DBitfields.h100 static_assert(sizeof(Unsigned) == sizeof(T), "Types must have same size");
103 static_assert(TypeBits >= Bits, "n-bit must fit in T");
122 static_assert(std::is_unsigned<T>::value, "T must be unsigned");
135 static_assert(std::is_signed<T>::value, "T must be signed");
157 static_assert(std::is_unsigned<StorageType>::value,
164 static_assert(Bitfield::FirstBit <= StorageBits, "Data must fit in mask");
165 static_assert(Bitfield::LastBit <= StorageBits, "Data must fit in mask");
236 static_assert(Bits > 0, "Bits must be non zero");
238 static_assert(Bits <= TypeBits, "Bits may not be greater than T size");
239 static_assert(!std::is_enum<T>::value || MaxValue != T(0),
[all …]
/src/contrib/llvm-project/libcxx/include/__iterator/
H A Dcpp17_iterator_concepts.h161 static_assert(::std::__cpp17_input_iterator<iter_t>, message)
163 static_assert(::std::__cpp17_output_iterator<iter_t, write_t>, message)
165 static_assert(::std::__cpp17_forward_iterator<iter_t>, message)
167 static_assert(::std::__cpp17_bidirectional_iterator<iter_t>, message)
169 static_assert(::std::__cpp17_random_access_iterator<iter_t>, message)
171 # define _LIBCPP_REQUIRE_CPP17_INPUT_ITERATOR(iter_t, message) static_assert(true)
172 # define _LIBCPP_REQUIRE_CPP17_OUTPUT_ITERATOR(iter_t, write_t, message) static_assert(true)
173 # define _LIBCPP_REQUIRE_CPP17_FORWARD_ITERATOR(iter_t, message) static_assert(true)
174 # define _LIBCPP_REQUIRE_CPP17_BIDIRECTIONAL_ITERATOR(iter_t, message) static_assert(true)
175 # define _LIBCPP_REQUIRE_CPP17_RANDOM_ACCESS_ITERATOR(iter_t, message) static_assert(true)
[all …]
/src/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DMinidump.h46 static_assert(sizeof(Header) == 32);
63 static_assert(sizeof(LocationDescriptor) == 8);
71 static_assert(sizeof(MemoryDescriptor) == 16);
89 static_assert(sizeof(MemoryInfoListHeader) == 16);
120 static_assert(sizeof(MemoryInfo) == 48);
129 static_assert(sizeof(Directory) == 12);
162 static_assert(sizeof(CPUInfo) == 24);
185 static_assert(sizeof(SystemInfo) == 56);
202 static_assert(sizeof(VSFixedFileInfo) == 52);
220 static_assert(sizeof(Module) == 108);
[all …]
/src/contrib/jemalloc/m4/
H A Dax_cxx_compile_stdcxx.m4183 static_assert(sizeof(int) <= sizeof(T), "not big enough");
256 static_assert(is_same<int, decltype(0)>::value == true, "");
257 static_assert(is_same<int, decltype(c)>::value == false, "");
258 static_assert(is_same<int, decltype(v)>::value == false, "");
263 static_assert(is_same<int, decltype(ac)>::value == true, "");
264 static_assert(is_same<int, decltype(av)>::value == true, "");
265 static_assert(is_same<int, decltype(sumi)>::value == true, "");
266 static_assert(is_same<int, decltype(sumf)>::value == false, "");
267 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
279 static_assert(noexcept(f()) == false, "");
[all …]
/src/contrib/kyua/m4/
H A Dax_cxx_compile_stdcxx.m4183 static_assert(sizeof(int) <= sizeof(T), "not big enough");
256 static_assert(is_same<int, decltype(0)>::value == true, "");
257 static_assert(is_same<int, decltype(c)>::value == false, "");
258 static_assert(is_same<int, decltype(v)>::value == false, "");
263 static_assert(is_same<int, decltype(ac)>::value == true, "");
264 static_assert(is_same<int, decltype(av)>::value == true, "");
265 static_assert(is_same<int, decltype(sumi)>::value == true, "");
266 static_assert(is_same<int, decltype(sumf)>::value == false, "");
267 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
279 static_assert(noexcept(f()) == false, "");
[all …]
/src/contrib/llvm-project/llvm/lib/Support/
H A DSmallVector.cpp40 static_assert(sizeof(SmallVector<void *, 0>) ==
43 static_assert(alignof(SmallVector<Struct16B, 0>) >= alignof(Struct16B),
45 static_assert(alignof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
47 static_assert(sizeof(SmallVector<Struct16B, 0>) >= alignof(Struct16B),
49 static_assert(sizeof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
51 static_assert(sizeof(SmallVector<void *, 1>) ==
55 static_assert(sizeof(SmallVector<char, 0>) ==
169 static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint64_t),
172 static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint32_t),
/src/contrib/llvm-project/llvm/include/llvm/Support/
H A DAMDHSAKernelDescriptor.h273 static_assert(
276 static_assert(offsetof(kernel_descriptor_t, group_segment_fixed_size) ==
279 static_assert(offsetof(kernel_descriptor_t, private_segment_fixed_size) ==
282 static_assert(offsetof(kernel_descriptor_t, kernarg_size) ==
285 static_assert(offsetof(kernel_descriptor_t, reserved0) == RESERVED0_OFFSET,
287 static_assert(offsetof(kernel_descriptor_t, kernel_code_entry_byte_offset) ==
290 static_assert(offsetof(kernel_descriptor_t, reserved1) == RESERVED1_OFFSET,
292 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc3) ==
295 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc1) ==
298 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc2) ==
[all …]
/src/contrib/googletest/googlemock/include/gmock/internal/
H A Dgmock-port.h106 static_assert(true, "no-op to require trailing semicolon")
111 static_assert(true, "no-op to require trailing semicolon")
116 static_assert(true, "no-op to require trailing semicolon")
123 static_assert(true, "no-op to require trailing semicolon")
128 static_assert(true, "no-op to require trailing semicolon")
133 static_assert(true, "no-op to require trailing semicolon")
/src/contrib/llvm-project/libcxx/include/__numeric/
H A Dgcd_lcm.h56 static_assert(!is_signed<_Tp>::value, "");
100static_assert(is_integral<_Tp>::value && is_integral<_Up>::value, "Arguments to gcd must be intege…
101 static_assert(!is_same<__remove_cv_t<_Tp>, bool>::value, "First argument to gcd cannot be bool");
102 static_assert(!is_same<__remove_cv_t<_Up>, bool>::value, "Second argument to gcd cannot be bool");
111static_assert(is_integral<_Tp>::value && is_integral<_Up>::value, "Arguments to lcm must be intege…
112 static_assert(!is_same<__remove_cv_t<_Tp>, bool>::value, "First argument to lcm cannot be bool");
113 static_assert(!is_same<__remove_cv_t<_Up>, bool>::value, "Second argument to lcm cannot be bool");
/src/contrib/llvm-project/libcxx/include/
H A Dratio141 static_assert(_Xp <= max - _Yp, "overflow in __ll_add");
158 static_assert(min - _Yp <= _Xp, "overflow in __ll_add");
172 static_assert(min + _Yp <= _Xp, "overflow in __ll_sub");
189 static_assert(_Xp <= max + _Yp, "overflow in __ll_sub");
203 static_assert(_Xp != nan && _Yp != nan && __a_x <= max / __a_y, "overflow in __ll_mul");
234 static_assert(_Xp != nan && _Yp != nan && _Yp != 0, "overflow in __ll_div");
242 static_assert(__static_abs<_Num>::value >= 0, "ratio numerator is out of range");
243 static_assert(_Den != 0, "ratio divide by 0");
244 static_assert(__static_abs<_Den>::value > 0, "ratio denominator is out of range");
291static_assert(__is_ratio<_R1>::value, "[ratio.general]/2 requires R1 to be a specialisation of the…
[all …]
/src/contrib/llvm-project/libcxx/include/__expected/
H A Dexpected.h448static_assert(!is_reference_v<_Tp> && !is_function_v<_Tp> && !is_same_v<remove_cv_t<_Tp>, in_place…
612 static_assert(
749 static_assert(is_nothrow_move_constructible_v<_Tp>,
827 static_assert(is_copy_constructible_v<_Err>, "error_type has to be copy constructible");
835 static_assert(is_copy_constructible_v<_Err>, "error_type has to be copy constructible");
843static_assert(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error()…
852static_assert(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error()…
886 static_assert(is_copy_constructible_v<_Tp>, "value_type has to be copy constructible");
887 static_assert(is_convertible_v<_Up, _Tp>, "argument has to be convertible to value_type");
893 static_assert(is_move_constructible_v<_Tp>, "value_type has to be move constructible");
[all …]
/src/contrib/llvm-project/compiler-rt/include/xray/
H A Dxray_records.h33 static_assert(sizeof(FdrAdditionalHeaderData) == 16,
65 static_assert(sizeof(XRayFileHeader) == 32, "XRayFileHeader != 32 bytes");
104 static_assert(sizeof(XRayRecord) == 32, "XRayRecord != 32 bytes");
130 static_assert(sizeof(XRayArgPayload) == 32, "XRayArgPayload != 32 bytes");
/src/lib/libc/tests/gen/
H A Dlimits_test.c17 static_assert(sizeof(type) * CHAR_BIT == TYPE ## _WIDTH, \
19 static_assert((1ULL << (TYPE ## _WIDTH - 1)) - 1 == TYPE ## _MAX, \
21 static_assert(TYPE ## _MIN == -TYPE ## _MAX - 1, \
24 static_assert(sizeof(type) * CHAR_BIT == TYPE ## _WIDTH, \
26 static_assert((type)~0ULL == TYPE ## _MAX, \
/src/contrib/llvm-project/libcxx/include/__random/
H A Dclamp_to_integral.h30 static_assert(is_floating_point<_FloatT>::value, "must be a floating point type"); in __max_representable_int_for_float()
31 static_assert(is_integral<_IntT>::value, "must be an integral type"); in __max_representable_int_for_float()
32 static_assert(numeric_limits<_FloatT>::radix == 2, "FloatT has incorrect radix"); in __max_representable_int_for_float()
33 static_assert( in __max_representable_int_for_float()
/src/contrib/llvm-project/compiler-rt/include/fuzzer/
H A DFuzzedDataProvider.h137 static_assert(sizeof(std::string::value_type) == sizeof(uint8_t), in ConsumeBytesAsString()
205 static_assert(std::is_integral<T>::value, "An integral type is required."); in ConsumeIntegralInRange()
206 static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type."); in ConsumeIntegralInRange()
273 static_assert(std::is_floating_point<T>::value, in ConsumeProbability()
296 static_assert(std::is_enum<T>::value, "|T| must be an enum type."); in ConsumeEnum()
304 static_assert(size > 0, "The array must be non empty."); in PickValueInArray()
310 static_assert(size > 0, "The array must be non empty."); in PickValueInArray()
353 static_assert(sizeof(T) == sizeof(uint8_t), "Incompatible data type."); in ConsumeBytes()
379 static_assert(sizeof(TS) == sizeof(TU), "Incompatible data types."); in ConvertUnsignedToSigned()
380 static_assert(!std::numeric_limits<TU>::is_signed, in ConvertUnsignedToSigned()
/src/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Datomic_helpers.h24 static_assert(memory_order_relaxed == __ATOMIC_RELAXED, "");
25 static_assert(memory_order_consume == __ATOMIC_CONSUME, "");
26 static_assert(memory_order_acquire == __ATOMIC_ACQUIRE, "");
27 static_assert(memory_order_release == __ATOMIC_RELEASE, "");
28 static_assert(memory_order_acq_rel == __ATOMIC_ACQ_REL, "");
29 static_assert(memory_order_seq_cst == __ATOMIC_SEQ_CST, "");
/src/contrib/googletest/googletest/include/gtest/
H A Dgtest-typed-test.h198 static_assert(sizeof(GTEST_STRINGIFY_(TestName)) > 1, \
229 static_assert(::testing::internal::TypedTestCaseIsDeprecated(), ""); \
266 static_assert(::testing::internal::TypedTestCase_P_IsDeprecated(), ""); \
301 static_assert(::testing::internal::RegisterTypedTestCase_P_IsDeprecated(), \
307 static_assert(sizeof(GTEST_STRINGIFY_(Prefix)) > 1, \
326 static_assert( \

12345678910>>...28