Home
last modified time | relevance | path

Searched refs:EnumType (Results 1 – 25 of 78) sorted by relevance

1234

/llvm-project-15.0.7/libcxx/test/std/input.output/filesystems/fs.enum/
H A Dcheck_bitmask_types.h10 template <class EnumType, EnumType Val1, EnumType Val2,
15 EnumType Zero = static_cast<EnumType>(0)
30 EnumType ValRef = Val1; in check()
31 ASSERT_SAME_TYPE(EnumType, decltype(Val1 & Val2)); in check()
34 ASSERT_SAME_TYPE(EnumType, decltype((~Val1))); in check()
54 EnumType e = Val1; in check()
55 EnumType& eref = (e &= Val2); in check()
60 EnumType e = Val1; in check()
61 EnumType& eref = (e |= Val2); in check()
66 EnumType e = Val1; in check()
[all …]
/llvm-project-15.0.7/lldb/test/API/lang/cpp/template/
H A Dmain.cpp16 enum class EnumType enum
22 template <EnumType Arg> class EnumTemplate;
28 class EnumTemplate<EnumType::Member>
49 class EnumTemplate<EnumType::Subclass> :
50 public EnumTemplate<EnumType::Member>
53 EnumTemplate(int m) : EnumTemplate<EnumType::Member>(m) in EnumTemplate()
66 EnumTemplate<EnumType::Member> member(123); in main()
67 EnumTemplate<EnumType::Subclass> subclass(123*2); in main()
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/NativePDB/
H A Dglobal-classes.cpp11 enum class EnumType : unsigned { enum
28 /* [28] */ EnumType l = EnumType::A;
96 static EnumType j;
111 EnumType Statics::j = EnumType::A;
128 EnumType *l = &Statics::j;
144 EnumType &j = Statics::j;
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dattr-mode-tmpl.cpp3 typedef enum { XX } EnumType; typedef
82 CheckEnumerations<EnumType>(); // expected-note{{in instantiation of}} in main()
89 CheckMachineMode<EnumType>(); // expected-note{{in instantiation of}} in main()
97 …CheckParameters<EnumType, float>(0, valV4DI, 1.0, valV4DF); // expected-error{{no matching functio… in main()
102 TemplatedStruct<EnumType> s2; // expected-note{{in instantiation of}} in main()
/llvm-project-15.0.7/clang/test/Sema/
H A Dattr-mode-enums.c8 typedef enum { E4 } EnumType; typedef
18 …typedef EnumType __attribute__((mode(V4DI))) RejectedType4; // expected-error{{mode 'V4DI' is not … in main()
20EnumType v1 __attribute__((mode(V4QI))); // expected-error{{mode 'V4QI' is not supported for enume… in main()
/llvm-project-15.0.7/lldb/test/API/python_api/type/
H A Dmain.cpp32 enum EnumType {}; enum
65 EnumType enum_type; in main()
/llvm-project-15.0.7/clang/test/Index/
H A Dget-cursor.cpp157 enum EnumType { Enumerator }; enum
159 EnumType e = Enumerator;
/llvm-project-15.0.7/libcxx/test/libcxx/type_traits/
H A Dconvert_to_integral.pass.cpp29 struct EnumType struct
58 typedef typename EnumType<From>::type Enum; in check_integral_types()
/llvm-project-15.0.7/polly/lib/External/isl/interface/
H A Dgenerator.cc228 const EnumType *enum_type = return_type->getAs<EnumType>(); in add_type_subclasses()
283 const EnumType *enum_type; in handled_sets_enum()
296 enum_type = param->getType()->getAs<EnumType>(); in handled_sets_enum()
353 if (param->getType()->getAs<EnumType>()) in takes_enums()
/llvm-project-15.0.7/libcxx/benchmarks/
H A DCartesianBenchmarks.h94 template <class Derived, class EnumType, size_t NumLabels>
96 decltype(internal::makeEnumValueTuple<Derived, EnumType>(
/llvm-project-15.0.7/clang-tools-extra/pseudo/unittests/
H A DForestTest.cpp109 const auto *EnumType = &Arena.createSequence( in TEST_F() local
114 &Arena.createSequence(symbol("type"), /*RuleID=*/4, {EnumType}); in TEST_F()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DPopulateSwitch.cpp76 const EnumType *EnumT = nullptr;
116 EnumT = Cond->getType().getCanonicalType()->getAsAdjusted<EnumType>(); in REGISTER_TWEAK()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DTargetInfo.cpp774 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
797 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1052 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1932 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
2894 if (const EnumType *ET = Ty->getAs<EnumType>()) { in classify()
4298 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classify()
4590 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI()
5093 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableTypeForABI()
7247 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
7472 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in isPromotableIntegerTypeForABI()
[all …]
H A DCodeGenTBAA.cpp198 if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) { in getTypeInfoHelper()
/llvm-project-15.0.7/clang/lib/AST/
H A DFormatString.cpp351 if (const EnumType *ETy = argTy->getAs<EnumType>()) { in matchesType()
374 if (const EnumType *ETy = argTy->getAs<EnumType>()) { in matchesType()
H A DType.cpp81 ND = ty->castAs<EnumType>()->getDecl(); in getBaseTypeIdentifier()
613 if (const auto *ET = getAs<EnumType>()) in isScopedEnumeralType()
1955 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) in isUnscopedEnumerationType()
2024 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isSignedIntegerType()
2147 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) in isRealType()
2157 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) in isArithmeticType()
2187 } else if (isa<EnumType>(T)) { in getScalarTypeKind()
2188 assert(cast<EnumType>(T)->getDecl()->isComplete()); in getScalarTypeKind()
2763 if (const auto *ET = getAs<EnumType>()) { in isAlignValT()
2772 if (const auto *ET = getAs<EnumType>()) { in isStdByteType()
[all …]
H A DScanfFormatString.cpp426 if (const EnumType *ETy = PT->getAs<EnumType>()) { in fixType()
H A DTemplateBase.cpp63 if (const EnumType *ET = T->getAs<EnumType>()) { in printIntegral()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DEnumCastOutOfRangeChecker.cpp128 const EnumDecl *ED = T->castAs<EnumType>()->getDecl(); in checkPreStmt()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnusedUsingDeclsCheck.cpp113 if (const auto *ET = ECD->getType()->getAs<EnumType>()) in check()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DCanonicalType.h563 struct CanProxyAdaptor<EnumType> : public CanProxyBase<EnumType> {
/llvm-project-15.0.7/clang/utils/ABITest/
H A DABITestGen.py216 elif isinstance(t, EnumType):
292 elif isinstance(t, EnumType):
322 elif isinstance(t, EnumType):
H A DTypeGen.py59 class EnumType(Type): class
279 return EnumType(n, enumerators)
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DHeuristicResolver.cpp254 if (auto *ET = T->getAs<EnumType>()) { in resolveDependentMember()
/llvm-project-15.0.7/clang-tools-extra/clang-doc/
H A DHTMLGenerator.cpp639 std::string EnumType; in genHTML() local
641 EnumType = "enum class "; in genHTML()
643 EnumType = "enum "; in genHTML()
646 std::make_unique<TagNode>(HTMLTag::TAG_H3, EnumType + I.Name)); in genHTML()

1234