| /llvm-project-15.0.7/clang/test/SemaCXX/ |
| H A D | underlying_type.cpp | 30 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 D | MemoryFlags.h | 90 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 D | memory_order.underlying_type.pass.cpp | 27 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 D | to_underlying.h | 24 _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 D | underlying_type.h | 33 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 D | DiagnosticOptions.h | 49 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 D | has_feature_type_traits.cpp | 113 #if __has_feature(underlying_type) 114 int underlying_type();
|
| /llvm-project-15.0.7/llvm/include/llvm/DebugInfo/CodeView/ |
| H A D | CodeView.h | 55 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 D | OrcError.cpp | 85 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 D | underlying_type.pass.cpp | 33 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 D | underlying_type.fail.cpp | 23 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 D | convert_to_integral.pass.cpp | 115 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 D | lldb-enumerations.h | 24 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 D | FunctionCognitiveComplexityCheck.cpp | 173 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 D | B.h | 5 struct underlying_type struct
|
| H A D | A.h | 6 struct underlying_type struct
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | DiagnosticOptions.cpp | 20 using UT = std::underlying_type<DiagnosticLevelMask>::type; in operator <<()
|
| /llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.enum/ |
| H A D | enum.path.format.pass.cpp | 26 typedef std::underlying_type<E>::type UT; in main()
|
| H A D | enum.directory_options.pass.cpp | 31 typedef std::underlying_type<E>::type UT; in main()
|
| H A D | enum.perm_options.pass.cpp | 33 typedef std::underlying_type<E>::type UT; in main()
|
| H A D | enum.file_type.pass.cpp | 29 typedef std::underlying_type<E>::type UT; in main()
|
| H A D | enum.copy_options.pass.cpp | 30 typedef std::underlying_type<E>::type UT; in main()
|
| /llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | EnumTables.cpp | 17 { #enum, std::underlying_type < enum_class > ::type(enum_class::enum) }
|
| /llvm-project-15.0.7/libcxx/test/std/language.support/support.dynamic/ |
| H A D | align_val_t.pass.cpp | 24 … 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 D | llvm-readobj.h | 53 { #enum, std::underlying_type<enum_class>::type(enum_class::enum) }
|