Searched refs:static_assert (Results 1 - 25 of 297) sorted by relevance

1234567891011>>

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/
H A DSmallVector.cpp26 static_assert(sizeof(SmallVector<void *, 0>) ==
29 static_assert(alignof(SmallVector<Struct16B, 0>) >= alignof(Struct16B),
31 static_assert(alignof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
33 static_assert(sizeof(SmallVector<Struct16B, 0>) >= alignof(Struct16B),
35 static_assert(sizeof(SmallVector<Struct32B, 0>) >= alignof(Struct32B),
37 static_assert(sizeof(SmallVector<void *, 1>) ==
41 static_assert(sizeof(SmallVector<char, 0>) ==
91 static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint64_t),
94 static_assert(sizeof(SmallVectorSizeType<char>) == sizeof(uint32_t),
H A DThreadLocal.cpp29 static_assert(sizeof(d) <= sizeof(data), "size too big");
/freebsd-13-stable/usr.bin/dtc/
H A Dutil.hh45 #ifndef static_assert
46 #define static_assert(x, y) ((void)0) macro
100 static_assert(sizeof(T) > 1,
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_fdr_log_records.h46 static_assert(sizeof(MetadataRecord) == 16, "Wrong size for MetadataRecord.");
71 static_assert(sizeof(FunctionRecord) == 8, "Wrong size for FunctionRecord.");
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DAMDHSAKernelDescriptor.h165 static_assert(
168 static_assert(
171 static_assert(
174 static_assert(
177 static_assert(
180 static_assert(
183 static_assert(
186 static_assert(
189 static_assert(
192 static_assert(
[all...]
/freebsd-13-stable/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-13-stable/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_utils.h24 static_assert(sizeof(Dest) == sizeof(Source), "Sizes are not equal!");
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Basic/
H A DAllDiagnostics.h32 static_assert(SizeOfStr <= FieldType(~0U), "Field too small!");
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A Diterator.h96 static_assert(std::is_base_of<iterator_facade_base, DerivedT>::value,
98 static_assert(
106 static_assert(
112 static_assert(
121 static_assert(std::is_base_of<iterator_facade_base, DerivedT>::value,
131 static_assert(
137 static_assert(
150 static_assert(
157 static_assert(
163 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 is unsigned");
135 static_assert(std::is_signed<T>::value, "T is 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");
221 ? T(0) // coupled with static_assert below
236 static_assert(Bits > 0, "Bits must be non zero");
238 static_assert(Bit
[all...]
/freebsd-13-stable/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, "");
84 static_assert(sizeof(MemoryInfoListHeader) == 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(sizeo
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/Windows/
H A DThreadLocal.inc24 static_assert(sizeof(DWORD) <= sizeof(data), "size too big");
/freebsd-13-stable/include/
H A Dassert.h64 * Static assertions. In principle we could define static_assert for
73 #define static_assert _Static_assert macro
/freebsd-13-stable/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-13-stable/contrib/llvm-project/lldb/source/Plugins/Process/minidump/
H A DMinidumpTypes.h55 static_assert(sizeof(CvRecordPdb70) == 20,
84 static_assert(sizeof(MinidumpMemoryDescriptor64) == 16,
103 static_assert(sizeof(MinidumpMiscInfo) == 24,
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Analysis/
H A DSelectorExtras.h19 static_assert(sizeof...(IdentifierInfos),
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Tooling/Refactoring/
H A DRefactoringOption.h55 static_assert(std::is_base_of<RefactoringOption, OptionType>::value,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DThreadLocal.inc30 static_assert(sizeof(pthread_key_t) <= sizeof(data), "size too big");
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVRegisterInfo.cpp30 static_assert(RISCV::X1 == RISCV::X0 + 1, "Register list not consecutive");
31 static_assert(RISCV::X31 == RISCV::X0 + 31, "Register list not consecutive");
32 static_assert(RISCV::F1_F == RISCV::F0_F + 1, "Register list not consecutive");
33 static_assert(RISCV::F31_F == RISCV::F0_F + 31,
35 static_assert(RISCV::F1_D == RISCV::F0_D + 1, "Register list not consecutive");
36 static_assert(RISCV::F31_D == RISCV::F0_D + 31,
38 static_assert(RISCV::V1 == RISCV::V0 + 1, "Register list not consecutive");
39 static_assert(RISCV::V31 == RISCV::V0 + 31, "Register list not consecutive");
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/SymbolFile/NativePDB/
H A DPdbSymUid.cpp55 static_assert(sizeof(CompilandIdRepr) == 8, "Invalid structure size!");
56 static_assert(sizeof(CompilandSymIdRepr) == 8, "Invalid structure size!");
57 static_assert(sizeof(GlobalSymIdRepr) == 8, "Invalid structure size!");
58 static_assert(sizeof(TypeSymIdRepr) == 8, "Invalid structure size!");
59 static_assert(sizeof(FieldListMemberIdRepr) == 8, "Invalid structure size!");
/freebsd-13-stable/contrib/llvm-project/compiler-rt/include/fuzzer/
H A DFuzzedDataProvider.h133 static_assert(sizeof(std::string::value_type) == sizeof(uint8_t),
201 static_assert(std::is_integral<T>::value, "An integral type is required.");
202 static_assert(sizeof(T) <= sizeof(uint64_t), "Unsupported integral type.");
269 static_assert(std::is_floating_point<T>::value,
292 static_assert(std::is_enum<T>::value, "|T| must be an enum type.");
300 static_assert(size > 0, "The array must be non empty.");
306 // TODO(Dor1s): switch to static_assert once C++14 is allowed.
343 static_assert(sizeof(T) == sizeof(uint8_t), "Incompatible data type.");
369 static_assert(sizeof(TS) == sizeof(TU), "Incompatible data types.");
370 static_assert(!st
[all...]
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/Process/Utility/
H A DRegisterContextLinux_mips.cpp44 static_assert((sizeof(g_gp_regnums_mips) / sizeof(g_gp_regnums_mips[0])) - 1 ==
61 static_assert((sizeof(g_fp_regnums_mips) / sizeof(g_fp_regnums_mips[0])) - 1 ==
80 static_assert((sizeof(g_msa_regnums_mips) / sizeof(g_msa_regnums_mips[0])) -
/freebsd-13-stable/contrib/llvm-project/lldb/source/Plugins/Process/elf-core/
H A DThreadElfCore.h67 static_assert(sizeof(ELFLinuxPrStatus) == 112,
88 static_assert(sizeof(ELFLinuxSigInfo) == 12,
123 static_assert(sizeof(ELFLinuxPrPsInfo) == 136,
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
H A DGSIStreamBuilder.h126 static_assert(IPHR_HASH <= 1 << 12, "bitfield too small");
141 static_assert(sizeof(BulkPublic) <= 24, "unexpected size increase");
142 static_assert(std::is_trivially_copyable<BulkPublic>::value,
/freebsd-13-stable/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/
H A Dbacktrace_linux_libc.cpp21 static_assert(sizeof(uintptr_t) == sizeof(void *), "uintptr_t is not void*");

Completed in 371 milliseconds

1234567891011>>