Home
last modified time | relevance | path

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

12345678910>>...26

/freebsd-14.2/contrib/googletest/googlemock/test/
H A Dgmock-pp_test.cc13 static_assert(GMOCK_PP_CAT(1, 4) == 14, "");
17 static_assert(GMOCK_PP_NARG() == 1, "");
18 static_assert(GMOCK_PP_NARG(x) == 1, "");
22 static_assert(!GMOCK_PP_HAS_COMMA(), "");
23 static_assert(GMOCK_PP_HAS_COMMA(b, ), "");
27 static_assert(
30 static_assert(!GMOCK_PP_IS_EMPTY(, ), "");
31 static_assert(!GMOCK_PP_IS_EMPTY(a), "");
37 static_assert(GMOCK_PP_HEAD(1) == 1, "");
52 static_assert(GMOCK_PP_INC(4) == 5, "");
[all …]
H A Dgmock-actions_test.cc115 static_assert( in TEST()
119 static_assert( in TEST()
123 static_assert( in TEST()
128 static_assert( in TEST()
136 static_assert( in TEST()
142 static_assert( in TEST()
150 static_assert( in TEST()
154 static_assert( in TEST()
158 static_assert( in TEST()
162 static_assert( in TEST()
[all …]
/freebsd-14.2/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 …]
/freebsd-14.2/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, "");
176 static_assert(sizeof(AllocatorState) == 56, "");
178 static_assert(sizeof(AllocationMetadata) == 568, "");
181 static_assert(sizeof(AllocatorState) == 32, "");
183 static_assert(sizeof(AllocationMetadata) == 548, "");
186 static_assert(sizeof(AllocatorState) == 32, "");
[all …]
/freebsd-14.2/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,
98 static_assert(kCompressedAddrBits + kSizeLoBits + 7 == 64,
119 static_assert(kCompressedAddrBits + kStackIDLoBits + 5 == 64,
133 static_assert(sizeof(EventLock) == 16, "bad EventLock size");
138 static_assert(kCompressedAddrBits + kUnusedBits + 5 == 64,
147 static_assert(sizeof(EventUnlock) == 8, "bad EventUnlock size");
[all …]
/freebsd-14.2/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(
158 static_assert(decodeIndexFltRoundConversionTable(
[all …]
/freebsd-14.2/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()
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()
256 static_assert(sizeof(*this) == sizeof(MockClass), in StrictMock()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A Diterator.h132 static_assert(
140 static_assert(
146 static_assert(
165 static_assert(
171 static_assert(
186 static_assert(
193 static_assert(
199 static_assert(
256 static_assert(
263 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,
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),
241 static_assert(!std::is_enum<T>::value ||
[all …]
H A Dbit.h140 static_assert(!sizeof(T *), "Don't know how to handle the given type."); in byteswap()
216 static_assert(std::is_unsigned_v<T>,
282 static_assert(std::is_unsigned_v<T>,
295 static_assert(std::is_unsigned_v<T>,
308 static_assert(std::is_unsigned_v<T>,
318 static_assert(std::is_unsigned_v<T>,
328 static_assert(std::is_unsigned_v<T>,
343 static_assert(std::is_unsigned_v<T>,
354 static_assert(SizeOfT <= 4, "Not implemented!");
/freebsd-14.2/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);
115 static_assert(sizeof(MemoryInfo) == 48);
124 static_assert(sizeof(Directory) == 12);
157 static_assert(sizeof(CPUInfo) == 24);
180 static_assert(sizeof(SystemInfo) == 56);
197 static_assert(sizeof(VSFixedFileInfo) == 52);
215 static_assert(sizeof(Module) == 108);
228 static_assert(sizeof(Thread) == 48);
[all …]
/freebsd-14.2/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),
/freebsd-14.2/contrib/kyua/m4/
H A Dax_cxx_compile_stdcxx.m4280 static_assert(noexcept(g()) == true, "");
301 static_assert(strlen_c("") == 0UL, "");
302 static_assert(strlen_c("1") == 1UL, "");
342 static_assert(test::zero == 0, "");
343 static_assert(test::one == 1, "");
409 static_assert(sum<>::value == 0, "");
410 static_assert(sum<1>::value == 1, "");
411 static_assert(sum<23>::value == 23, "");
507 static_assert(strlen_c("") == 0UL, "");
508 static_assert(strlen_c("x") == 1UL, "");
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Support/
H A DAMDHSAKernelDescriptor.h270 static_assert(
273 static_assert(offsetof(kernel_descriptor_t, group_segment_fixed_size) ==
276 static_assert(offsetof(kernel_descriptor_t, private_segment_fixed_size) ==
279 static_assert(offsetof(kernel_descriptor_t, kernarg_size) ==
282 static_assert(offsetof(kernel_descriptor_t, reserved0) == RESERVED0_OFFSET,
287 static_assert(offsetof(kernel_descriptor_t, reserved1) == RESERVED1_OFFSET,
289 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc3) ==
292 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc1) ==
295 static_assert(offsetof(kernel_descriptor_t, compute_pgm_rsrc2) ==
298 static_assert(offsetof(kernel_descriptor_t, kernel_code_properties) ==
[all …]
/freebsd-14.2/contrib/llvm-project/libcxx/include/__numeric/
H A Dgcd_lcm.h54 static_assert((!is_signed<_Tp>::value), "");
60static_assert((is_integral<_Tp>::value && is_integral<_Up>::value), "Arguments to gcd must be inte…
61static_assert((!is_same<__remove_cv_t<_Tp>, bool>::value), "First argument to gcd cannot be bool");
62static_assert((!is_same<__remove_cv_t<_Up>, bool>::value), "Second argument to gcd cannot be bool"…
71static_assert((is_integral<_Tp>::value && is_integral<_Up>::value), "Arguments to lcm must be inte…
72static_assert((!is_same<__remove_cv_t<_Tp>, bool>::value), "First argument to lcm cannot be bool");
73static_assert((!is_same<__remove_cv_t<_Up>, bool>::value), "Second argument to lcm cannot be bool"…
/freebsd-14.2/contrib/googletest/googlemock/include/gmock/internal/
H A Dgmock-port.h105 static_assert(true, "no-op to require trailing semicolon")
110 static_assert(true, "no-op to require trailing semicolon")
115 static_assert(true, "no-op to require trailing semicolon")
122 static_assert(true, "no-op to require trailing semicolon")
127 static_assert(true, "no-op to require trailing semicolon")
132 static_assert(true, "no-op to require trailing semicolon")
/freebsd-14.2/contrib/llvm-project/libcxx/include/__expected/
H A Dexpected.h614 static_assert(
949 static_assert(
963 static_assert(
1003 static_assert(
1017 static_assert(
1651 static_assert(
1664 static_assert(
1677 static_assert(
1690 static_assert(
1725 static_assert(
[all …]
/freebsd-14.2/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");
/freebsd-14.2/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()
/freebsd-14.2/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()
/freebsd-14.2/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, "");
/freebsd-14.2/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( \
/freebsd-14.2/contrib/llvm-project/libcxx/include/__algorithm/
H A Dlexicographical_compare_three_way.h40 static_assert(
42 static_assert(
96 static_assert(__comparison_category<decltype(__comp(*__first1, *__first2))>,
98static_assert(std::is_copy_constructible_v<_InputIterator1>, "Iterators must be copy constructible…
99static_assert(std::is_copy_constructible_v<_InputIterator2>, "Iterators must be copy constructible…
/freebsd-14.2/usr.bin/dtc/
H A Dutil.hh43 #ifndef static_assert
44 #define static_assert(x, y) ((void)0) macro
98 static_assert(sizeof(T) > 1, in push_big_endian()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/Basic/
H A DHLSLRuntime.h34 static_assert( \
54 static_assert(getStageFromEnvironment(llvm::Triple::UnknownEnvironment) ==
58 static_assert(getStageFromEnvironment(llvm::Triple::MSVC) ==

12345678910>>...26