/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | StmtIterator.cpp | 91 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) { in HandleDecl()
|
H A D | NSAPI.cpp | 572 if (const EnumConstantDecl * in isObjCEnumerator() 573 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
|
H A D | Decl.cpp | 863 } else if (isa<EnumConstantDecl>(D)) { in getLVForNamespaceScopeDecl() 5438 EnumConstantDecl::EnumConstantDecl(const ASTContext &C, DeclContext *DC, in EnumConstantDecl() function in EnumConstantDecl 5445 EnumConstantDecl *EnumConstantDecl::Create(ASTContext &C, EnumDecl *CD, in Create() 5449 return new (C, CD) EnumConstantDecl(C, CD, L, Id, T, E, V); in Create() 5452 EnumConstantDecl *EnumConstantDecl::CreateDeserialized(ASTContext &C, in CreateDeserialized() 5454 return new (C, ID) EnumConstantDecl(C, nullptr, SourceLocation(), nullptr, in CreateDeserialized() 5486 SourceRange EnumConstantDecl::getSourceRange() const { in getSourceRange()
|
H A D | ODRDiagsEmitter.cpp | 1868 llvm::SmallVector<std::pair<const EnumConstantDecl *, unsigned>, 4>; in diagnoseMismatch() 1875 assert(isa<EnumConstantDecl>(D) && "Unexpected Decl kind"); in diagnoseMismatch() 1876 Hashes.emplace_back(cast<EnumConstantDecl>(D), computeODRHash(D)); in diagnoseMismatch() 1895 const EnumConstantDecl *FirstConstant = FirstHashes[I].first; in diagnoseMismatch() 1896 const EnumConstantDecl *SecondConstant = SecondHashes[I].first; in diagnoseMismatch()
|
H A D | ODRHash.cpp | 527 void VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl() 769 assert(isa<EnumConstantDecl>(SubDecl) && "Unexpected Decl"); in AddEnumDecl()
|
H A D | DeclPrinter.cpp | 67 void VisitEnumConstantDecl(EnumConstantDecl *D); 514 else if (isa<EnumConstantDecl>(*D)) { in VisitDeclContext() 611 void DeclPrinter::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
|
H A D | TemplateBase.cpp | 64 for (const EnumConstantDecl *ECD : ET->getDecl()->enumerators()) { in printIntegral()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaBPF.cpp | 96 const EnumConstantDecl *Enumerator = in isValidPreserveEnumValueArg() 97 dyn_cast<EnumConstantDecl>(DR->getDecl()); in isValidPreserveEnumValueArg()
|
H A D | SemaDecl.cpp | 1214 (!FirstDecl->isCXXClassMember() || isa<EnumConstantDecl>(FirstDecl))) in ClassifyName() 2555 auto *ED = cast<EnumConstantDecl>(D); in MergeTypedefNameDecl() 10191 if (auto *ECD = dyn_cast<EnumConstantDecl>(NonParmDecl)) in ActOnFunctionDeclarator() 19372 EnumConstantDecl *Sema::CheckEnumConstant(EnumDecl *Enum, in CheckEnumConstant() 19373 EnumConstantDecl *LastEnumConst, in CheckEnumConstant() 19549 return EnumConstantDecl::Create(Context, Enum, IdLoc, Id, EltTy, in CheckEnumConstant() 19564 auto *PrevECD = dyn_cast_or_null<EnumConstantDecl>(PrevDecl); in shouldSkipAnonEnumBody() 19584 EnumConstantDecl *LastEnumConst = in ActOnEnumConstant() 19585 cast_or_null<EnumConstantDecl>(lastEnumConst); in ActOnEnumConstant() 19614 EnumConstantDecl *New = in ActOnEnumConstant() [all …]
|
H A D | SemaAPINotes.cpp | 566 static void ProcessAPINotes(Sema &S, EnumConstantDecl *D, in ProcessAPINotes() 923 if (auto EnumConstant = dyn_cast<EnumConstantDecl>(D)) { in ProcessAPINotes()
|
H A D | SemaStmt.cpp | 1031 static bool CmpEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs, in CmpEnumVals() 1032 const std::pair<llvm::APSInt, EnumConstantDecl*>& rhs) in CmpEnumVals() 1039 static bool EqEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs, in EqEnumVals() 1040 const std::pair<llvm::APSInt, EnumConstantDecl*>& rhs) in EqEnumVals() 1182 typedef SmallVector<std::pair<llvm::APSInt, EnumConstantDecl*>, 64> EnumValsTy; 1689 typedef SmallVector<std::pair<llvm::APSInt, EnumConstantDecl *>, 64> in DiagnoseAssignmentEnum()
|
H A D | CodeCompleteConsumer.cpp | 774 if (isa<EnumConstantDecl>(D)) in getDeclAvailability()
|
H A D | SemaSwift.cpp | 575 } else if ((isa<EnumConstantDecl>(D) || isa<ObjCProtocolDecl>(D) || in DiagnoseName()
|
H A D | SemaExprMember.cpp | 1178 if (EnumConstantDecl *Enum = dyn_cast<EnumConstantDecl>(MemberDecl)) { in BuildMemberReferenceExpr()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
H A D | ClangPersistentVariables.cpp | 97 for (clang::EnumConstantDecl *enumerator_decl : enum_decl->enumerators()) { in RegisterPersistentDecl()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | ReachableCode.cpp | 41 return isa<EnumConstantDecl>(DR->getDecl()); in isEnumConstant() 275 if (const EnumConstantDecl *ED = dyn_cast<EnumConstantDecl>(D)) in isConfigurationValue()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerHelpers.cpp | 43 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | Decl.h | 3268 class EnumConstantDecl : public ValueDecl, 3269 public Mergeable<EnumConstantDecl>, 3275 EnumConstantDecl(const ASTContext &C, DeclContext *DC, SourceLocation L, 3282 static EnumConstantDecl *Create(ASTContext &C, EnumDecl *DC, 3286 static EnumConstantDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID); 3303 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() 3304 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() 3969 using enumerator_iterator = specific_decl_iterator<EnumConstantDecl>; 3971 llvm::iterator_range<specific_decl_iterator<EnumConstantDecl>>;
|
H A D | TextNodeDumper.h | 357 void VisitEnumConstantDecl(const EnumConstantDecl *D);
|
H A D | JSONNodeDumper.h | 260 void VisitEnumConstantDecl(const EnumConstantDecl *ECD);
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CStringSyntaxChecker.cpp | 171 assert(isa<EnumConstantDecl>(LenArgDRE->getDecl())); in containsBadStrlcpyStrlcatPattern()
|
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/ |
H A D | DeclarationFragments.h | 332 getFragmentsForEnumConstant(const EnumConstantDecl *);
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/ |
H A D | TypeSystemClang.h | 1027 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType( 1030 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType(
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | Transfer.cpp | 475 if (isa<EnumConstantDecl>(Member)) in VisitMemberExpr()
|
/freebsd/contrib/llvm-project/clang/lib/Index/ |
H A D | IndexDecl.cpp | 348 bool VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
|