| /freebsd-14.2/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 | 599 if (const EnumConstantDecl * in isObjCEnumerator() 600 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
|
| H A D | Decl.cpp | 856 } else if (isa<EnumConstantDecl>(D)) { in getLVForNamespaceScopeDecl() 5376 EnumConstantDecl::EnumConstantDecl(const ASTContext &C, DeclContext *DC, in EnumConstantDecl() function in EnumConstantDecl 5383 EnumConstantDecl *EnumConstantDecl::Create(ASTContext &C, EnumDecl *CD, in Create() 5387 return new (C, CD) EnumConstantDecl(C, CD, L, Id, T, E, V); in Create() 5390 EnumConstantDecl * 5391 EnumConstantDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized() 5392 return new (C, ID) EnumConstantDecl(C, nullptr, SourceLocation(), nullptr, in CreateDeserialized() 5424 SourceRange EnumConstantDecl::getSourceRange() const { in getSourceRange()
|
| H A D | ODRDiagsEmitter.cpp | 1863 llvm::SmallVector<std::pair<const EnumConstantDecl *, unsigned>, 4>; in diagnoseMismatch() 1870 assert(isa<EnumConstantDecl>(D) && "Unexpected Decl kind"); in diagnoseMismatch() 1871 Hashes.emplace_back(cast<EnumConstantDecl>(D), computeODRHash(D)); in diagnoseMismatch() 1890 const EnumConstantDecl *FirstConstant = FirstHashes[I].first; in diagnoseMismatch() 1891 const EnumConstantDecl *SecondConstant = SecondHashes[I].first; in diagnoseMismatch()
|
| H A D | ODRHash.cpp | 520 void VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl() 756 assert(isa<EnumConstantDecl>(SubDecl) && "Unexpected Decl"); in AddEnumDecl()
|
| H A D | DeclPrinter.cpp | 78 void VisitEnumConstantDecl(EnumConstantDecl *D); 560 else if (isa<EnumConstantDecl>(*D)) { in VisitDeclContext() 657 void DeclPrinter::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
|
| H A D | TemplateBase.cpp | 64 for (const EnumConstantDecl *ECD : ET->getDecl()->enumerators()) { in printIntegral()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexingContext.cpp | 164 isa<EnumConstantDecl>(D)) { in isTemplateImplicitInstantiation() 236 } else if (const auto *ECD = dyn_cast<EnumConstantDecl>(D)) { in adjustTemplateImplicitInstantiation() 260 if (isa<TypedefNameDecl>(D) || isa<EnumConstantDecl>(D) || in isDeclADefinition()
|
| /freebsd-14.2/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-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | EnumCastOutOfRangeChecker.cpp | 78 [](const EnumConstantDecl *D) { return D->getInitVal(); }); in getDeclValuesForEnum()
|
| H A D | CStringSyntaxChecker.cpp | 171 assert(isa<EnumConstantDecl>(LenArgDRE->getDecl())); in containsBadStrlcpyStrlcatPattern()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | ReachableCode.cpp | 40 return isa<EnumConstantDecl>(DR->getDecl()); in isEnumConstant() 274 if (const EnumConstantDecl *ED = dyn_cast<EnumConstantDecl>(D)) in isConfigurationValue()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerHelpers.cpp | 42 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | Decl.h | 3255 class EnumConstantDecl : public ValueDecl, 3256 public Mergeable<EnumConstantDecl>, 3262 EnumConstantDecl(const ASTContext &C, DeclContext *DC, SourceLocation L, 3269 static EnumConstantDecl *Create(ASTContext &C, EnumDecl *DC, 3273 static EnumConstantDecl *CreateDeserialized(ASTContext &C, unsigned ID); 3290 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() 3291 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() 3953 using enumerator_iterator = specific_decl_iterator<EnumConstantDecl>; 3955 llvm::iterator_range<specific_decl_iterator<EnumConstantDecl>>;
|
| H A D | TextNodeDumper.h | 344 void VisitEnumConstantDecl(const EnumConstantDecl *D);
|
| H A D | JSONNodeDumper.h | 257 void VisitEnumConstantDecl(const EnumConstantDecl *ECD);
|
| H A D | ASTNodeTraverser.h | 423 void VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
|
| /freebsd-14.2/contrib/llvm-project/clang/include/clang/ExtractAPI/ |
| H A D | DeclarationFragments.h | 290 getFragmentsForEnumConstant(const EnumConstantDecl *);
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| H A D | USRLocFinder.cpp | 303 if (const auto *T = llvm::dyn_cast<EnumConstantDecl>(Decl)) { in VisitDeclRefExpr()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaDecl.cpp | 2700 auto *ED = cast<EnumConstantDecl>(D); in MergeTypedefNameDecl() 19917 EnumConstantDecl *LastEnumConst = in ActOnEnumConstant() 19946 EnumConstantDecl *New = in ActOnEnumConstant() 19962 if (isa<EnumConstantDecl>(PrevDecl)) in ActOnEnumConstant() 20013 EnumConstantDecl *EnumConstant = dyn_cast<EnumConstantDecl>(DRE->getDecl()); in ValidDuplicateEnum() 20059 EnumConstantDecl *ECD = cast_or_null<EnumConstantDecl>(Element); in CheckForDuplicateEnumValues() 20081 EnumConstantDecl *ECD = cast<EnumConstantDecl>(Element); in CheckForDuplicateEnumValues() 20090 if (EnumConstantDecl *D = Entry.dyn_cast<EnumConstantDecl*>()) { in CheckForDuplicateEnumValues() 20175 EnumConstantDecl *ECD = in ActOnEnumBody() 20199 EnumConstantDecl *ECD = in ActOnEnumBody() [all …]
|
| H A D | SemaStmt.cpp | 1008 static bool CmpEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs, in CmpEnumVals() 1009 const std::pair<llvm::APSInt, EnumConstantDecl*>& rhs) in CmpEnumVals() 1016 static bool EqEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs, in EqEnumVals() 1017 const std::pair<llvm::APSInt, EnumConstantDecl*>& rhs) in EqEnumVals() 1159 typedef SmallVector<std::pair<llvm::APSInt, EnumConstantDecl*>, 64> EnumValsTy; 1666 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 | SemaExprMember.cpp | 1169 if (EnumConstantDecl *Enum = dyn_cast<EnumConstantDecl>(MemberDecl)) { in BuildMemberReferenceExpr()
|
| /freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/ |
| H A D | TypeSystemClang.h | 1006 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType( 1009 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType(
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | Transfer.cpp | 429 if (isa<EnumConstantDecl>(Member)) in VisitMemberExpr()
|