Home
last modified time | relevance | path

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

123

/external/libcxx/test/std/input.output/filesystems/fs.enum/
Dcheck_bitmask_types.hpp10 template <class EnumType, EnumType Val1, EnumType Val2,
11 class UT = typename std::underlying_type<EnumType>::type,
15 EnumType Zero = static_cast<EnumType>(0)
19 static constexpr UT dcast(EnumType e) { return static_cast<UT>(e); } in dcast()
30 EnumType ValRef = Val1; in check()
31 ASSERT_SAME_TYPE(EnumType, decltype(Val1 & Val2)); in check()
32 ASSERT_SAME_TYPE(EnumType, decltype(Val1 | Val2)); in check()
33 ASSERT_SAME_TYPE(EnumType, decltype(Val1 ^ Val2)); in check()
34 ASSERT_SAME_TYPE(EnumType, decltype((~Val1))); in check()
35 ASSERT_SAME_TYPE(EnumType&, decltype(ValRef &= Val2)); in check()
[all …]
/external/protobuf/src/google/protobuf/
Dmap_test_util_impl.h54 template <typename EnumType, EnumType enum_value0,
55 EnumType enum_value1, typename MapMessage>
59 template <typename EnumType, EnumType enum_value0,
60 EnumType enum_value1, typename MapMessage>
69 template <typename EnumType, EnumType enum_value, typename MapMessage>
74 template <typename EnumType, EnumType enum_value0,
75 EnumType enum_value1, typename MapMessage>
80 template <typename EnumType, EnumType enum_value0,
81 EnumType enum_value1, typename MapMessage>
86 template <typename EnumType, EnumType enum_value, typename MapMessage>
[all …]
Dgenerated_enum_reflection.h69 template<typename EnumType>
72 EnumType* value) { in ParseNamedEnum()
75 *value = static_cast<EnumType>(tmp); in ParseNamedEnum()
/external/deqp-deps/SPIRV-Tools/source/
Denum_set.h33 template <typename EnumType>
45 explicit EnumSet(EnumType c) { Add(c); } in EnumSet()
47 EnumSet(std::initializer_list<EnumType> cs) { in EnumSet()
50 EnumSet(uint32_t count, const EnumType* ptr) { in EnumSet()
74 void Add(EnumType c) { AddWord(ToWord(c)); } in Add()
77 bool Contains(EnumType c) const { return ContainsWord(ToWord(c)); } in Contains()
81 void ForEach(std::function<void(EnumType)> f) const { in ForEach()
83 if (mask_ & AsMask(i)) f(static_cast<EnumType>(i)); in ForEach()
86 for (uint32_t c : *overflow_) f(static_cast<EnumType>(c)); in ForEach()
99 bool HasAnyOf(const EnumSet<EnumType>& in_set) const { in HasAnyOf()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/source/
Denum_set.h33 template <typename EnumType>
45 explicit EnumSet(EnumType c) { Add(c); } in EnumSet()
47 EnumSet(std::initializer_list<EnumType> cs) { in EnumSet()
50 EnumSet(uint32_t count, const EnumType* ptr) { in EnumSet()
74 void Add(EnumType c) { AddWord(ToWord(c)); } in Add()
77 bool Contains(EnumType c) const { return ContainsWord(ToWord(c)); } in Contains()
81 void ForEach(std::function<void(EnumType)> f) const { in ForEach()
83 if (mask_ & AsMask(i)) f(static_cast<EnumType>(i)); in ForEach()
86 for (uint32_t c : *overflow_) f(static_cast<EnumType>(c)); in ForEach()
99 bool HasAnyOf(const EnumSet<EnumType>& in_set) const { in HasAnyOf()
[all …]
/external/clang/test/SemaCXX/
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()
/external/clang/test/Sema/
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()
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py376 class EnumType(object): class
676 'NestedEnum': EnumType([('ALPHA', 1), ('BETA', 2)]),
678 'NestedEnum': EnumType([('EPSILON', 5), ('ZETA', 6)]),
680 'NestedEnum': EnumType([('ETA', 7), ('THETA', 8)]),
696 'NestedEnum': EnumType([('GAMMA', 3), ('DELTA', 4)]),
698 'NestedEnum': EnumType([('IOTA', 9), ('KAPPA', 10)]),
700 'NestedEnum': EnumType([('LAMBDA', 11), ('MU', 12)]),
722 'NestedEnum': EnumType([('NU', 13), ('XI', 14)]),
724 'NestedEnum': EnumType([('OMICRON', 15), ('PI', 16)]),
726 'NestedEnum': EnumType([('RHO', 17), ('SIGMA', 18)]),
/external/protobuf/src/google/protobuf/util/
Djson_format_proto3.proto43 enum EnumType { enum
62 EnumType enum_value = 10;
74 repeated EnumType repeated_enum_value = 30;
89 EnumType oneof_enum_value = 4;
/external/libcxx/test/libcxx/type_traits/
Dconvert_to_integral.pass.cpp28 struct EnumType struct
57 typedef typename EnumType<From>::type Enum; in check_integral_types()
/external/clang/lib/CodeGen/
DTargetInfo.cpp630 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
645 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
788 } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType()
809 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1304 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1569 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
2362 if (const EnumType *ET = Ty->getAs<EnumType>()) { in classify()
2658 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectReturnResult()
2691 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectResult()
3060 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
[all …]
DCodeGenTBAA.cpp151 if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) { in getTBAAInfo()
/external/libcxx/benchmarks/
DCartesianBenchmarks.hpp95 template <class Derived, class EnumType, size_t NumLabels>
97 decltype(internal::makeEnumValueTuple<Derived, EnumType>(
/external/clang/lib/AST/
DType.cpp55 ND = ty->getAs<EnumType>()->getDecl(); in getBaseTypeIdentifier()
1632 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isIntegralType()
1648 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isIntegralOrUnscopedEnumerationType()
1712 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isSignedIntegerType()
1728 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isSignedIntegerOrEnumerationType()
1752 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isUnsignedIntegerType()
1768 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isUnsignedIntegerOrEnumerationType()
1809 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isRealType()
1818 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isArithmeticType()
1847 } else if (isa<EnumType>(T)) { in getScalarTypeKind()
[all …]
DTemplateBase.cpp43 if (const EnumType *ET = T->getAs<EnumType>()) { in printIntegral()
DASTContext.cpp1756 if (const EnumType *ET = dyn_cast<EnumType>(TT)) { in getTypeInfoImpl()
1905 if (const EnumType *ET = T->getAs<EnumType>()) in getPreferredTypeAlign()
3253 EnumType *newType = new (*this, TypeAlignment) EnumType(Decl); in getEnumType()
4774 if (const EnumType *ET = Promotable->getAs<EnumType>()) in getPromotedIntegerType()
4831 static const Type *getIntegerTypeForEnum(const EnumType *ET) { in getIntegerTypeForEnum()
4847 if (const EnumType *ET = dyn_cast<EnumType>(LHSC)) in getIntegerTypeOrder()
4849 if (const EnumType *ET = dyn_cast<EnumType>(RHSC)) in getIntegerTypeOrder()
5547 static char ObjCEncodingForEnumType(const ASTContext *C, const EnumType *ET) { in ObjCEncodingForEnumType()
5582 if (const EnumType *ET = T->getAs<EnumType>()) in EncodeBitField()
5613 S += ObjCEncodingForEnumType(this, cast<EnumType>(CT)); in getObjCEncodingForTypeImpl()
[all …]
/external/clang/lib/Analysis/
DFormatString.cpp313 if (const EnumType *ETy = argTy->getAs<EnumType>()) in matchesType()
330 if (const EnumType *ETy = argTy->getAs<EnumType>()) in matchesType()
DScanfFormatString.cpp421 if (const EnumType *ETy = PT->getAs<EnumType>()) in fixType()
/external/protobuf/csharp/src/Google.Protobuf/Reflection/
DMessageDescriptor.cs85 proto.EnumType, in MessageDescriptor()
DFileDescriptor.cs61 EnumTypes = DescriptorUtil.ConvertAndMakeReadOnly(proto.EnumType, in FileDescriptor()
DFieldDescriptor.cs226 public EnumDescriptor EnumType property in Google.Protobuf.Reflection.FieldDescriptor
/external/clang/include/clang/AST/
DCanonicalType.h544 struct CanProxyAdaptor<EnumType> : public CanProxyBase<EnumType> {
/external/clang/lib/Sema/
DSemaCXXScopeSpec.cpp233 const EnumType *enumType = dyn_cast_or_null<EnumType>(tagType); in RequireCompleteDeclContext()
732 } else if (isa<EnumType>(T)) { in BuildCXXNestedNameSpecifier()
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-readobj/Inputs/
Drelocs.py22 class EnumType(type): class
24 super(EnumType, self).__init__(name, bases, attributes)
85 Enum = EnumType('Enum', (), {})
/external/llvm/test/tools/llvm-readobj/Inputs/
Drelocs.py22 class EnumType(type): class
24 super(EnumType, self).__init__(name, bases, attributes)
85 Enum = EnumType('Enum', (), {})

123