Home
last modified time | relevance | path

Searched refs:underlying_type (Results 1 – 25 of 56) sorted by relevance

123

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dunderlying_type.cpp30 struct underlying_type { struct
34 static_assert(is_same_type<underlying_type<f>::type, char>::value,
37 underlying_type<int>::type e; // expected-note {{requested here}}
42 static_assert(is_same_type<underlying_type<foo>::type, unsigned>::value,
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/JITLink/
H A DMemoryFlags.h90 using underlying_type = uint8_t;
105 AllocGroup(MemProt MP) : Id(static_cast<underlying_type>(MP)) {}
109 : Id(static_cast<underlying_type>(MP) |
110 (static_cast<underlying_type>(MDP) << BitsForProt)) {}
135 AllocGroup(underlying_type RawId) : Id(RawId) {}
136 underlying_type Id = 0;
211 return DenseMapInfo<jitlink::AllocGroup::underlying_type>::getHashValue(
/llvm-project-15.0.7/libcxx/test/libcxx/atomics/atomics.order/
H A Dmemory_order.underlying_type.pass.cpp27 static_assert((std::is_same<std::underlying_type<cpp17_memory_order>::type,
28 std::underlying_type<std::memory_order>::type>::value),
/llvm-project-15.0.7/libcxx/include/__utility/
H A Dto_underlying.h24 _LIBCPP_INLINE_VISIBILITY constexpr typename underlying_type<_Tp>::type
26 return static_cast<typename underlying_type<_Tp>::type>(__val); in __to_underlying()
/llvm-project-15.0.7/libcxx/include/__type_traits/
H A Dunderlying_type.h33 struct underlying_type : __underlying_type_impl<_Tp, is_enum<_Tp>::value> {};
36 template <class _Tp> using underlying_type_t = typename underlying_type<_Tp>::type;
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DDiagnosticOptions.h49 using UT = std::underlying_type<DiagnosticLevelMask>::type;
55 using UT = std::underlying_type<DiagnosticLevelMask>::type;
62 using UT = std::underlying_type<DiagnosticLevelMask>::type;
/llvm-project-15.0.7/clang/test/Lexer/
H A Dhas_feature_type_traits.cpp113 #if __has_feature(underlying_type)
114 int underlying_type();
/llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/
H A DCodeView.h55 static_cast<std::underlying_type<Class>::type>(a) | \
56 static_cast<std::underlying_type<Class>::type>(b)); \
60 static_cast<std::underlying_type<Class>::type>(a) & \
61 static_cast<std::underlying_type<Class>::type>(b)); \
65 ~static_cast<std::underlying_type<Class>::type>(a)); \
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/Shared/
H A DOrcError.cpp85 typedef std::underlying_type<OrcErrorCode>::type UT; in orcError()
108 typedef std::underlying_type<OrcErrorCode>::type UT; in convertToErrorCode()
/llvm-project-15.0.7/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
H A Dunderlying_type.pass.cpp33 std::void_t<typename std::underlying_type<T>::type>> : std::true_type {};
42 ASSERT_SAME_TYPE(Expected, typename std::underlying_type<T>::type); in check()
H A Dunderlying_type.fail.cpp23 enum E1 { E1Zero, E1One, E1Two = sizeof(std::underlying_type<E1>::type) }; // expected-error@*:* {{…
/llvm-project-15.0.7/libcxx/test/libcxx/type_traits/
H A Dconvert_to_integral.pass.cpp115 typedef std::underlying_type<enum1>::type Enum1UT; in main()
117 typedef std::underlying_type<enum2>::type Enum2UT; in main()
/llvm-project-15.0.7/lldb/include/lldb/
H A Dlldb-enumerations.h24 static_cast<std::underlying_type<Enum>::type>(a) | \
25 static_cast<std::underlying_type<Enum>::type>(b)); \
29 static_cast<std::underlying_type<Enum>::type>(a) & \
30 static_cast<std::underlying_type<Enum>::type>(b)); \
34 ~static_cast<std::underlying_type<Enum>::type>(a)); \
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DFunctionCognitiveComplexityCheck.cpp173 static_cast<std::underlying_type<CognitiveComplexity::Criteria>::type>( in operator |()
175 static_cast<std::underlying_type<CognitiveComplexity::Criteria>::type>( in operator |()
181 static_cast<std::underlying_type<CognitiveComplexity::Criteria>::type>( in operator &()
183 static_cast<std::underlying_type<CognitiveComplexity::Criteria>::type>( in operator &()
/llvm-project-15.0.7/clang/test/Modules/Inputs/PR26014/
H A DB.h5 struct underlying_type struct
H A DA.h6 struct underlying_type struct
/llvm-project-15.0.7/clang/lib/Basic/
H A DDiagnosticOptions.cpp20 using UT = std::underlying_type<DiagnosticLevelMask>::type; in operator <<()
/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.enum/
H A Denum.path.format.pass.cpp26 typedef std::underlying_type<E>::type UT; in main()
H A Denum.directory_options.pass.cpp31 typedef std::underlying_type<E>::type UT; in main()
H A Denum.perm_options.pass.cpp33 typedef std::underlying_type<E>::type UT; in main()
H A Denum.file_type.pass.cpp29 typedef std::underlying_type<E>::type UT; in main()
H A Denum.copy_options.pass.cpp30 typedef std::underlying_type<E>::type UT; in main()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DEnumTables.cpp17 { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
/llvm-project-15.0.7/libcxx/test/std/language.support/support.dynamic/
H A Dalign_val_t.pass.cpp24 … static_assert(std::is_same<std::underlying_type<std::align_val_t>::type, std::size_t>::value, ""); in main()
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A Dllvm-readobj.h53 { #enum, std::underlying_type<enum_class>::type(enum_class::enum) }

123