Home
last modified time | relevance | path

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

123

/openbsd/src/gnu/usr.bin/gcc/gcc/testsuite/g++.dg/template/
Dcrash2.C3 template <class EnumType>
7 static const EnumType size = max; // { dg-error "" }
10 template <class EnumType>
11 const EnumType A<EnumType>::size;
/openbsd/src/gnu/llvm/libcxx/benchmarks/
DCartesianBenchmarks.h94 template <class Derived, class EnumType, size_t NumLabels>
96 decltype(internal::makeEnumValueTuple<Derived, EnumType>(
/openbsd/src/gnu/llvm/clang/lib/CodeGen/
DTargetInfo.cpp787 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
810 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1025 } else if (const EnumType *EnumTy = Ty->getAs<EnumType>()) { in classifyArgumentType()
1059 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1614 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
1941 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
2889 if (const EnumType *ET = Ty->getAs<EnumType>()) { in classify()
3217 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectReturnResult()
3259 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in getIndirectResult()
3664 if (const EnumType *EnumTy = RetTy->getAs<EnumType>()) in classifyReturnType()
[all …]
DCodeGenTBAA.cpp198 if (const EnumType *ETy = dyn_cast<EnumType>(Ty)) { in getTypeInfoHelper()
DCGDebugInfo.h214 llvm::DIType *CreateEnumType(const EnumType *Ty);
215 llvm::DIType *CreateTypeDefinition(const EnumType *Ty);
/openbsd/src/gnu/llvm/clang/lib/StaticAnalyzer/Checkers/
DEnumCastOutOfRangeChecker.cpp129 const EnumDecl *ED = T->castAs<EnumType>()->getDecl(); in checkPreStmt()
/openbsd/src/gnu/llvm/clang/lib/AST/
DType.cpp81 ND = ty->castAs<EnumType>()->getDecl(); in getBaseTypeIdentifier()
617 if (const auto *ET = getAs<EnumType>()) in isScopedEnumeralType()
1961 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) in isIntegralType()
1979 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) in isUnscopedEnumerationType()
2048 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) { in isSignedIntegerType()
2069 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) { in isSignedIntegerOrEnumerationType()
2098 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) { in isUnsignedIntegerType()
2119 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) { in isUnsignedIntegerOrEnumerationType()
2171 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) in isRealType()
2181 if (const auto *ET = dyn_cast<EnumType>(CanonicalType)) in isArithmeticType()
[all …]
DFormatString.cpp352 if (const auto *ETy = argTy->getAs<EnumType>()) { in matchesType()
392 if (const EnumType *ETy = argTy->getAs<EnumType>()) { in matchesType()
DScanfFormatString.cpp428 if (const EnumType *ETy = PT->getAs<EnumType>()) { in fixType()
DTemplateBase.cpp63 if (const EnumType *ET = T->getAs<EnumType>()) { in printIntegral()
DPrintfFormatString.cpp730 if (const EnumType *ETy = QT->getAs<EnumType>()) in fixType()
DDeclCXX.cpp3128 TypeSourceInfo *EnumType) { in Create() argument
3129 assert(isa<EnumDecl>(EnumType->getType()->getAsTagDecl())); in Create()
3131 UsingEnumDecl(DC, EnumType->getType()->getAsTagDecl()->getDeclName(), UL, EL, NL, EnumType); in Create()
3141 return SourceRange(UsingLocation, EnumType->getTypeLoc().getEndLoc()); in getSourceRange()
DASTContext.cpp1895 if (const auto *ET = T->getAs<EnumType>()) { in isPromotableIntegerType()
2333 if (const auto *ET = dyn_cast<EnumType>(TT)) { in getTypeInfoImpl()
2549 if (const auto *ET = T->getAs<EnumType>()) in getPreferredTypeAlign()
4746 auto *newType = new (*this, TypeAlignment) EnumType(Decl); in getEnumType()
7151 if (const auto *ET = Promotable->getAs<EnumType>()) in getPromotedIntegerType()
7208 static const Type *getIntegerTypeForEnum(const EnumType *ET) { in getIntegerTypeForEnum()
7224 if (const auto *ET = dyn_cast<EnumType>(LHSC)) in getIntegerTypeOrder()
7226 if (const auto *ET = dyn_cast<EnumType>(RHSC)) in getIntegerTypeOrder()
8071 static char ObjCEncodingForEnumType(const ASTContext *C, const EnumType *ET) { in ObjCEncodingForEnumType()
8116 if (const auto *ET = T->getAs<EnumType>()) in EncodeBitField()
[all …]
/openbsd/src/gnu/llvm/clang/include/clang/AST/
DDeclCXX.h3632 TypeSourceInfo *EnumType; variable
3635 SourceLocation EL, SourceLocation NL, TypeSourceInfo *EnumType) in UsingEnumDecl() argument
3637 EnumType(EnumType){} in UsingEnumDecl()
3656 if (auto ETL = EnumType->getTypeLoc().getAs<ElaboratedTypeLoc>()) in getQualifierLoc()
3662 return EnumType->getTypeLoc(); in getEnumTypeLoc()
3665 return EnumType; in getEnumType()
3667 void setEnumType(TypeSourceInfo *TSI) { EnumType = TSI; } in setEnumType()
3670 EnumDecl *getEnumDecl() const { return cast<EnumDecl>(EnumType->getType()->getAsTagDecl()); } in getEnumDecl()
3674 SourceLocation NameL, TypeSourceInfo *EnumType);
DCanonicalType.h562 struct CanProxyAdaptor<EnumType> : public CanProxyBase<EnumType> {
DType.h4847 class EnumType : public TagType {
4850 explicit EnumType(const EnumDecl *D)
6989 return isa<EnumType>(CanonicalType);
7227 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType)) {
7282 if (const EnumType *ET = dyn_cast<EnumType>(CanonicalType))
7301 if (const auto *ET = dyn_cast<EnumType>(CanonicalType))
/openbsd/src/gnu/llvm/clang/utils/ABITest/
DABITestGen.py216 elif isinstance(t, EnumType):
292 elif isinstance(t, EnumType):
322 elif isinstance(t, EnumType):
DTypeGen.py59 class EnumType(Type): class
279 return EnumType(n, enumerators)
/openbsd/src/gnu/llvm/lldb/source/Plugins/TypeSystem/Clang/
DTypeSystemClang.cpp2685 return llvm::cast<clang::EnumType>(qual_type)->getDecl(); in GetDeclContextForType()
3266 const clang::EnumType *enum_type = llvm::dyn_cast<clang::EnumType>( in IsEnumerationType()
3282 const clang::EnumType *enum_type = llvm::dyn_cast<clang::EnumType>( in IsScopedEnumerationType()
3973 weak_from_this(), llvm::cast<clang::EnumType>(qual_type) in GetTypeInfo()
4678 if (const clang::EnumType *et = qual_type->getAs<clang::EnumType>()) in CreateTypedef()
5609 const clang::EnumType *enum_type = in ForEachEnumerator()
5610 llvm::dyn_cast<clang::EnumType>(GetCanonicalQualType(type)); in ForEachEnumerator()
7340 const clang::EnumType *enutype = in GetAsEnumDecl()
7341 llvm::dyn_cast<clang::EnumType>(ClangUtil::GetCanonicalQualType(type)); in GetAsEnumDecl()
7652 if (const EnumType *enum_type = qt->getAs<EnumType>()) { in SetIntegerInitializerForVariable()
[all …]
/openbsd/src/gnu/llvm/clang/lib/Sema/
DSemaStmt.cpp1168 QualType EnumType = S.Context.getTypeDeclType(ED); in ShouldDiagnoseSwitchCaseNotInEnum() local
1170 S.Context.hasSameUnqualifiedType(EnumType, VarType)) in ShouldDiagnoseSwitchCaseNotInEnum()
1192 const EnumType *CondEnumType = CondType->getAs<EnumType>(); in checkEnumTypesInSwitchStmt()
1193 const EnumType *CaseEnumType = CaseType->getAs<EnumType>(); in checkEnumTypesInSwitchStmt()
1497 const EnumType *ET = CondTypeBeforePromotion->getAs<EnumType>(); in ActOnFinishSwitchStmt()
1633 if (const EnumType *ET = DstType->getAs<EnumType>()) in DiagnoseAssignmentEnum()
DSemaCast.cpp1343 if (const EnumType *Enum = SrcType->getAs<EnumType>()) { in TryStaticCast()
1375 const EnumType *Enum = DestType->castAs<EnumType>(); in TryStaticCast()
DSemaChecking.cpp3385 } else if (const auto *ET = Ty->getAs<EnumType>()) { in isValidBPFPreserveTypeInfoArg()
3425 const auto *ET = Ty->getAs<EnumType>(); in isValidBPFPreserveEnumValueArg()
7376 const EnumDecl *ED = Type->castAs<EnumType>()->getDecl(); in SemaBuiltinVAStart()
10422 if (auto EnumTy = ExprTy->getAs<EnumType>()) { in checkFormatExpr()
12328 if (const EnumType *ET = dyn_cast<EnumType>(T)) in forValueOfCanonicalType()
12330 } else if (const EnumType *ET = dyn_cast<EnumType>(T)) { in forValueOfCanonicalType()
12373 if (const EnumType *ET = dyn_cast<EnumType>(T)) in forTargetOfCanonicalType()
13270 EnumDecl *BitfieldEnumDecl = BitfieldType->castAs<EnumType>()->getDecl(); in AnalyzeBitFieldAssignment()
13299 if (const auto *EnumTy = OriginalInit->getType()->getAs<EnumType>()) { in AnalyzeBitFieldAssignment()
14305 if ((!isa<EnumType>(Target) || !isa<EnumType>(Source)) && in CheckImplicitConversion()
[all …]
DSemaTemplate.cpp752 IsEnum = isa_and_nonnull<EnumType>(NNS->getAsType()); in ActOnDependentIdExpression()
3290 if (const EnumType *EnumT = T->getAs<EnumType>()) { in MatchTemplateParametersToScopeSpecifier()
6318 bool UnnamedLocalNoLinkageFinder::VisitEnumType(const EnumType* T) { in VisitEnumType()
7391 if (const EnumType *Enum = IntegerType->getAs<EnumType>()) in CheckTemplateArgument()
7476 if (const EnumType *Enum = IntegerType->getAs<EnumType>()) { in CheckTemplateArgument()
7904 if (const EnumType *ET = OrigT->getAs<EnumType>()) in BuildExpressionFromIntegralTemplateArgument()
/openbsd/src/gnu/llvm/clang/include/clang/Basic/
DTypeNodes.td91 def EnumType : TypeNode<TagType>, LeafType;
/openbsd/src/gnu/llvm/lldb/source/Plugins/ExpressionParser/Clang/
DClangASTImporter.cpp379 llvm::cast<clang::EnumType>(qual_type)->getDecl(); in CanImport()
453 llvm::cast<clang::EnumType>(qual_type)->getDecl(); in Import()

123