/external/protobuf/src/google/protobuf/ |
D | generated_enum_reflection.h | 72 template<typename EnumType> 75 EnumType* value) { in ParseNamedEnum() 78 *value = static_cast<EnumType>(tmp); in ParseNamedEnum()
|
/external/protobuf/python/google/protobuf/internal/ |
D | descriptor_pool_test.py | 259 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/ |
D | convert_to_integral.pass.cpp | 13 struct EnumType struct 42 typedef typename EnumType<From>::type Enum; in check_integral_types()
|
/external/clang/lib/CodeGen/ |
D | TargetInfo.cpp | 597 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 …]
|
D | CodeGenTBAA.cpp | 147 if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) { in getTBAAInfo()
|
D | CGDebugInfo.h | 172 llvm::DIType *CreateEnumType(const EnumType *Ty); 173 llvm::DIType *CreateTypeDefinition(const EnumType *Ty);
|
D | CodeGenTypes.cpp | 587 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl(); in ConvertType()
|
D | CGExpr.cpp | 1183 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/ |
D | Type.cpp | 55 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 …]
|
D | TemplateBase.cpp | 43 if (const EnumType *ET = T->getAs<EnumType>()) { in printIntegral()
|
D | ASTContext.cpp | 1765 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 …]
|
D | TypePrinter.cpp | 986 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/ |
D | FormatString.cpp | 282 if (const EnumType *ETy = argTy->getAs<EnumType>()) in matchesType() 299 if (const EnumType *ETy = argTy->getAs<EnumType>()) in matchesType()
|
D | ScanfFormatString.cpp | 416 if (const EnumType *ETy = PT->getAs<EnumType>()) in fixType()
|
D | PrintfFormatString.cpp | 596 if (const EnumType *ETy = QT->getAs<EnumType>()) in fixType()
|
/external/clang/include/clang/AST/ |
D | CanonicalType.h | 541 struct CanProxyAdaptor<EnumType> : public CanProxyBase<EnumType> {
|
D | Type.h | 3569 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/ |
D | SemaCXXScopeSpec.cpp | 222 const EnumType *enumType = dyn_cast_or_null<EnumType>(tagType); in RequireCompleteDeclContext() 702 } else if (isa<EnumType>(T)) { in BuildCXXNestedNameSpecifier()
|
D | SemaStmt.cpp | 708 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()
|
D | SemaTemplate.cpp | 1724 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()
|
D | SemaLambda.cpp | 549 if (const EnumType *ET = E->getType()->getAs<EnumType>()) { in findEnumForBlockReturn()
|
D | SemaChecking.cpp | 4281 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/ |
D | ABITestGen.py | 215 elif isinstance(t, EnumType): 291 elif isinstance(t, EnumType): 321 elif isinstance(t, EnumType):
|
D | TypeGen.py | 58 class EnumType(Type): class 277 return EnumType(n, enumerators)
|
/external/llvm/test/tools/llvm-readobj/Inputs/ |
D | relocs.py | 22 class EnumType(type): class 24 super(EnumType, self).__init__(name, bases, attributes) 85 Enum = EnumType('Enum', (), {})
|