Home
last modified time | relevance | path

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

12

/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDTargetInfo.cpp425 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
440 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
491 } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType()
512 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
902 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1128 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
1885 if (const EnumType *ET = Ty->getAs<EnumType>()) { in classify()
2174 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectReturnResult()
2207 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectResult()
2576 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
[all …]
HDCodeGenTBAA.cpp147 if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) { in getTBAAInfo()
HDCGDebugInfo.h156 llvm::DIType *CreateEnumType(const EnumType *Ty);
157 llvm::DIType *CreateTypeDefinition(const EnumType *Ty);
HDCodeGenTypes.cpp574 const EnumDecl *ED = cast<EnumType>(Ty)->getDecl(); in ConvertType()
HDCGDebugInfo.cpp1406 llvm::DIType *Res = CreateTypeDefinition(Ty->castAs<EnumType>()); in completeType()
1909 llvm::DIType *CGDebugInfo::CreateEnumType(const EnumType *Ty) { in CreateEnumType()
1940 llvm::DIType *CGDebugInfo::CreateTypeDefinition(const EnumType *Ty) { in CreateTypeDefinition()
2139 return CreateEnumType(cast<EnumType>(Ty)); in CreateTypeNode()
3195 assert(isa<EnumType>(ED->getTypeForDecl()) && "Enum without EnumType?"); in EmitGlobalVariable()
HDCGExpr.cpp1067 if (const EnumType *ET = Ty->getAs<EnumType>()) in hasBooleanRepresentation()
1079 const EnumType *ET = Ty->getAs<EnumType>(); in getRangeForType()
1187 SanOpts.has(SanitizerKind::Enum) && Ty->getAs<EnumType>(); in EmitLoadOfScalar()
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDType.cpp54 ND = ty->getAs<EnumType>()->getDecl(); in getBaseTypeIdentifier()
1609 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isIntegralType()
1625 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isIntegralOrUnscopedEnumerationType()
1689 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isSignedIntegerType()
1705 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isSignedIntegerOrEnumerationType()
1729 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isUnsignedIntegerType()
1745 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isUnsignedIntegerOrEnumerationType()
1786 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isRealType()
1795 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) in isArithmeticType()
1824 } else if (isa<EnumType>(T)) { in getScalarTypeKind()
[all …]
HDASTContext.cpp1706 if (const EnumType *ET = dyn_cast<EnumType>(TT)) { in getTypeInfoImpl()
1848 if (const EnumType *ET = T->getAs<EnumType>()) in getPreferredTypeAlign()
3141 EnumType *newType = new (*this, TypeAlignment) EnumType(Decl); in getEnumType()
4656 if (const EnumType *ET = Promotable->getAs<EnumType>()) in getPromotedIntegerType()
4713 static const Type *getIntegerTypeForEnum(const EnumType *ET) { in getIntegerTypeForEnum()
4729 if (const EnumType *ET = dyn_cast<EnumType>(LHSC)) in getIntegerTypeOrder()
4731 if (const EnumType *ET = dyn_cast<EnumType>(RHSC)) in getIntegerTypeOrder()
5380 static char ObjCEncodingForEnumType(const ASTContext *C, const EnumType *ET) { in ObjCEncodingForEnumType()
5415 if (const EnumType *ET = T->getAs<EnumType>()) in EncodeBitField()
5446 S += ObjCEncodingForEnumType(this, cast<EnumType>(CT)); in getObjCEncodingForTypeImpl()
[all …]
HDTemplateBase.cpp43 if (const EnumType *ET = T->getAs<EnumType>()) { in printIntegral()
HDTypePrinter.cpp981 void TypePrinter::printEnumBefore(const EnumType *T, raw_ostream &OS) { in printEnumBefore()
984 void TypePrinter::printEnumAfter(const EnumType *T, raw_ostream &OS) { } in printEnumAfter()
/NextBSD/contrib/llvm/tools/clang/lib/Analysis/
HDFormatString.cpp282 if (const EnumType *ETy = argTy->getAs<EnumType>()) in matchesType()
299 if (const EnumType *ETy = argTy->getAs<EnumType>()) in matchesType()
HDScanfFormatString.cpp416 if (const EnumType *ETy = PT->getAs<EnumType>()) in fixType()
HDPrintfFormatString.cpp596 if (const EnumType *ETy = QT->getAs<EnumType>()) in fixType()
/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDCanonicalType.h541 struct CanProxyAdaptor<EnumType> : public CanProxyBase<EnumType> {
HDType.h3544 class EnumType : public TagType {
3545 explicit EnumType(const EnumDecl *D)
5293 return isa<EnumType>(CanonicalType);
5452 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) {
5465 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType))
5483 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType))
HDDataRecursiveASTVisitor.h902 DEF_TRAVERSE_TYPE(EnumType, {})
1121 DEF_TRAVERSE_TYPELOC(EnumType, {})
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaCXXScopeSpec.cpp222 const EnumType *enumType = dyn_cast_or_null<EnumType>(tagType); in RequireCompleteDeclContext()
699 } else if (isa<EnumType>(T)) { in BuildCXXNestedNameSpecifier()
HDSemaStmt.cpp707 QualType EnumType = S.Context.getTypeDeclType(ED); in ShouldDiagnoseSwitchCaseNotInEnum() local
709 S.Context.hasSameUnqualifiedType(EnumType, VarType)) in ShouldDiagnoseSwitchCaseNotInEnum()
1058 const EnumType *ET = CondTypeBeforePromotion->getAs<EnumType>(); in ActOnFinishSwitchStmt()
1175 if (const EnumType *ET = DstType->getAs<EnumType>()) in DiagnoseAssignmentEnum()
HDSemaTemplate.cpp1722 if (const EnumType *EnumT = T->getAs<EnumType>()) { in MatchTemplateParametersToScopeSpecifier()
4093 bool UnnamedLocalNoLinkageFinder::VisitEnumType(const EnumType* T) { in VisitEnumType()
4999 if (const EnumType *Enum = IntegerType->getAs<EnumType>()) in CheckTemplateArgument()
5083 if (const EnumType *Enum = IntegerType->getAs<EnumType>()) in CheckTemplateArgument()
5462 if (const EnumType *ET = OrigT->getAs<EnumType>()) in BuildExpressionFromIntegralTemplateArgument()
HDSemaLambda.cpp549 if (const EnumType *ET = E->getType()->getAs<EnumType>()) { in findEnumForBlockReturn()
HDSemaChecking.cpp4114 if (auto EnumTy = ExprTy->getAs<EnumType>()) { in checkFormatExpr()
5927 if (const EnumType *ET = dyn_cast<EnumType>(T)) { in forValueOfCanonicalType()
5962 if (const EnumType *ET = dyn_cast<EnumType>(T)) in forTargetOfCanonicalType()
7208 if (const EnumType *SourceEnum = Source->getAs<EnumType>()) in CheckImplicitConversion()
7209 if (const EnumType *TargetEnum = Target->getAs<EnumType>()) in CheckImplicitConversion()
9418 cast<EnumType>(T1)->getDecl(), in isLayoutCompatible()
9419 cast<EnumType>(T2)->getDecl()); in isLayoutCompatible()
HDSemaCast.cpp1008 if (const EnumType *Enum = SrcType->getAs<EnumType>()) { in TryStaticCast()
/NextBSD/contrib/llvm/tools/lldb/source/Symbol/
HDClangASTType.cpp1407 …pointee_or_element_clang_type->SetClangType(m_ast, llvm::cast<clang::EnumType>(qual_type)->getDecl… in GetTypeInfo()
4825 const clang::EnumType *enum_type = llvm::dyn_cast<clang::EnumType>(GetCanonicalQualType()); in GetAsEnumDecl()
5714 …case clang::Type::Enum: return llvm::cast<clang::EnumType>(qual_type)->getDecl… in GetDeclContextForType()
5795 clang::EnumDecl *enum_decl = llvm::cast<clang::EnumType>(qual_type)->getDecl(); in SetHasExternalStorage()
5917 const clang::EnumType *enum_type = llvm::dyn_cast<clang::EnumType>(qual_type.getTypePtr()); in CompleteTagDeclarationDefinition()
5973 const clang::EnumType *enum_type = llvm::dyn_cast<clang::EnumType>(clang_type); in AddEnumerationValueToEnumerationType()
6012 const clang::EnumType *enum_type = llvm::dyn_cast<clang::EnumType>(clang_type); in GetEnumerationIntegerType()
6230 const clang::EnumType *enum_type = llvm::cast<clang::EnumType>(qual_type.getTypePtr()); in DumpValue()
6459 … const clang::EnumType *enum_type = llvm::cast<clang::EnumType>(qual_type.getTypePtr()); in DumpTypeValue()
/NextBSD/contrib/llvm/tools/clang/include/clang/ASTMatchers/
HDASTMatchersInternal.h677 if (const EnumType *AsEnum = dyn_cast<EnumType>(Node.getTypePtr())) in matchesSpecialized()
916 typedef TypeList<CallExpr, CXXConstructExpr, DeclRefExpr, EnumType,
/NextBSD/contrib/llvm/tools/clang/lib/ARCMigrate/
HDObjCMT.cpp951 if (const EnumType *EnumTy = qt->getAs<EnumType>()) { in migrateNSEnumDecl()

12