Home
last modified time | relevance | path

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

123

/external/protobuf/src/google/protobuf/
Dgenerated_enum_reflection.h72 template<typename EnumType>
75 EnumType* value) { in ParseNamedEnum()
78 *value = static_cast<EnumType>(tmp); in ParseNamedEnum()
/external/protobuf/python/google/protobuf/internal/
Ddescriptor_pool_test.py259 class EnumType(object): class
492 'NestedEnum': EnumType([('ALPHA', 1), ('BETA', 2)]),
494 'NestedEnum': EnumType([('EPSILON', 5), ('ZETA', 6)]),
496 'NestedEnum': EnumType([('ETA', 7), ('THETA', 8)]),
512 'NestedEnum': EnumType([('GAMMA', 3), ('DELTA', 4)]),
514 'NestedEnum': EnumType([('IOTA', 9), ('KAPPA', 10)]),
516 'NestedEnum': EnumType([('LAMBDA', 11), ('MU', 12)]),
538 'NestedEnum': EnumType([('NU', 13), ('XI', 14)]),
540 'NestedEnum': EnumType([('OMICRON', 15), ('PI', 16)]),
542 'NestedEnum': EnumType([('RHO', 17), ('SIGMA', 18)]),
/external/libcxx/test/libcxx/type_traits/
Dconvert_to_integral.pass.cpp13 struct EnumType struct
42 typedef typename EnumType<From>::type Enum; in check_integral_types()
/external/clang/lib/CodeGen/
DTargetInfo.cpp597 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
612 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
737 } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType()
758 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1158 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1396 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
2146 if (const EnumType *ET = Ty->getAs<EnumType>()) { in classify()
2437 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectReturnResult()
2470 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectResult()
2839 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
[all …]
DCodeGenTBAA.cpp147 if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) { in getTBAAInfo()
DCGDebugInfo.h172 llvm::DIType *CreateEnumType(const EnumType *Ty);
173 llvm::DIType *CreateTypeDefinition(const EnumType *Ty);
DCodeGenTypes.cpp587 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl(); in ConvertType()
DCGExpr.cpp1183 if (const EnumType *ET = Ty->getAs<EnumType>()) in hasBooleanRepresentation()
1195 const EnumType *ET = Ty->getAs<EnumType>(); in getRangeForType()
1291 SanOpts.has(SanitizerKind::Enum) && Ty->getAs<EnumType>(); in EmitLoadOfScalar()
/external/clang/lib/AST/
DType.cpp55 ND = ty->getAs<EnumType>()->getDecl(); in getBaseTypeIdentifier()
1626 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isIntegralType()
1642 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isIntegralOrUnscopedEnumerationType()
1706 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isSignedIntegerType()
1722 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isSignedIntegerOrEnumerationType()
1746 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isUnsignedIntegerType()
1762 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isUnsignedIntegerOrEnumerationType()
1803 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isRealType()
1812 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isArithmeticType()
1841 } else if (isa<EnumType>(T)) { in getScalarTypeKind()
[all …]
DTemplateBase.cpp43 if (const EnumType *ET = T->getAs<EnumType>()) { in printIntegral()
DASTContext.cpp1765 if (const EnumType *ET = dyn_cast<EnumType>(TT)) { in getTypeInfoImpl()
1907 if (const EnumType *ET = T->getAs<EnumType>()) in getPreferredTypeAlign()
3210 EnumType *newType = new (*this, TypeAlignment) EnumType(Decl); in getEnumType()
4717 if (const EnumType *ET = Promotable->getAs<EnumType>()) in getPromotedIntegerType()
4774 static const Type *getIntegerTypeForEnum(const EnumType *ET) { in getIntegerTypeForEnum()
4790 if (const EnumType *ET = dyn_cast<EnumType>(LHSC)) in getIntegerTypeOrder()
4792 if (const EnumType *ET = dyn_cast<EnumType>(RHSC)) in getIntegerTypeOrder()
5450 static char ObjCEncodingForEnumType(const ASTContext *C, const EnumType *ET) { in ObjCEncodingForEnumType()
5485 if (const EnumType *ET = T->getAs<EnumType>()) in EncodeBitField()
5516 S += ObjCEncodingForEnumType(this, cast<EnumType>(CT)); in getObjCEncodingForTypeImpl()
[all …]
DTypePrinter.cpp986 void TypePrinter::printEnumBefore(const EnumType *T, raw_ostream &OS) { in printEnumBefore()
989 void TypePrinter::printEnumAfter(const EnumType *T, raw_ostream &OS) { } in printEnumAfter()
/external/clang/lib/Analysis/
DFormatString.cpp282 if (const EnumType *ETy = argTy->getAs<EnumType>()) in matchesType()
299 if (const EnumType *ETy = argTy->getAs<EnumType>()) in matchesType()
DScanfFormatString.cpp416 if (const EnumType *ETy = PT->getAs<EnumType>()) in fixType()
DPrintfFormatString.cpp596 if (const EnumType *ETy = QT->getAs<EnumType>()) in fixType()
/external/clang/include/clang/AST/
DCanonicalType.h541 struct CanProxyAdaptor<EnumType> : public CanProxyBase<EnumType> {
DType.h3569 class EnumType : public TagType {
3570 explicit EnumType(const EnumDecl *D)
5330 return isa<EnumType>(CanonicalType);
5532 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) {
5545 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType))
5563 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType))
/external/clang/lib/Sema/
DSemaCXXScopeSpec.cpp222 const EnumType *enumType = dyn_cast_or_null<EnumType>(tagType); in RequireCompleteDeclContext()
702 } else if (isa<EnumType>(T)) { in BuildCXXNestedNameSpecifier()
DSemaStmt.cpp708 QualType EnumType = S.Context.getTypeDeclType(ED); in ShouldDiagnoseSwitchCaseNotInEnum() local
710 S.Context.hasSameUnqualifiedType(EnumType, VarType)) in ShouldDiagnoseSwitchCaseNotInEnum()
1059 const EnumType *ET = CondTypeBeforePromotion->getAs<EnumType>(); in ActOnFinishSwitchStmt()
1176 if (const EnumType *ET = DstType->getAs<EnumType>()) in DiagnoseAssignmentEnum()
DSemaTemplate.cpp1724 if (const EnumType *EnumT = T->getAs<EnumType>()) { in MatchTemplateParametersToScopeSpecifier()
4129 bool UnnamedLocalNoLinkageFinder::VisitEnumType(const EnumType* T) { in VisitEnumType()
5037 if (const EnumType *Enum = IntegerType->getAs<EnumType>()) in CheckTemplateArgument()
5121 if (const EnumType *Enum = IntegerType->getAs<EnumType>()) in CheckTemplateArgument()
5500 if (const EnumType *ET = OrigT->getAs<EnumType>()) in BuildExpressionFromIntegralTemplateArgument()
DSemaLambda.cpp549 if (const EnumType *ET = E->getType()->getAs<EnumType>()) { in findEnumForBlockReturn()
DSemaChecking.cpp4281 if (auto EnumTy = ExprTy->getAs<EnumType>()) { in checkFormatExpr()
6110 if (const EnumType *ET = dyn_cast<EnumType>(T)) { in forValueOfCanonicalType()
6145 if (const EnumType *ET = dyn_cast<EnumType>(T)) in forTargetOfCanonicalType()
7399 if (const EnumType *SourceEnum = Source->getAs<EnumType>()) in CheckImplicitConversion()
7400 if (const EnumType *TargetEnum = Target->getAs<EnumType>()) in CheckImplicitConversion()
9641 cast<EnumType>(T1)->getDecl(), in isLayoutCompatible()
9642 cast<EnumType>(T2)->getDecl()); in isLayoutCompatible()
/external/clang/utils/ABITest/
DABITestGen.py215 elif isinstance(t, EnumType):
291 elif isinstance(t, EnumType):
321 elif isinstance(t, EnumType):
DTypeGen.py58 class EnumType(Type): class
277 return EnumType(n, enumerators)
/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