| /freebsd-12-stable/contrib/llvm-project/clang/lib/AST/ |
| D | StmtIterator.cpp | 91 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) { in HandleDecl()
|
| D | NSAPI.cpp | 595 if (const EnumConstantDecl * in isObjCEnumerator() 596 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
|
| D | Decl.cpp | 862 } else if (isa<EnumConstantDecl>(D)) { in getLVForNamespaceScopeDecl() 4897 EnumConstantDecl *EnumConstantDecl::Create(ASTContext &C, EnumDecl *CD, in Create() 4901 return new (C, CD) EnumConstantDecl(CD, L, Id, T, E, V); in Create() 4904 EnumConstantDecl * 4905 EnumConstantDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized() 4906 return new (C, ID) EnumConstantDecl(nullptr, SourceLocation(), nullptr, in CreateDeserialized() 4937 SourceRange EnumConstantDecl::getSourceRange() const { in getSourceRange()
|
| D | ODRHash.cpp | 434 void VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl() 618 assert(isa<EnumConstantDecl>(SubDecl) && "Unexpected Decl"); in AddEnumDecl()
|
| D | DeclPrinter.cpp | 66 void VisitEnumConstantDecl(EnumConstantDecl *D); 471 else if (isa<EnumConstantDecl>(*D)) { in VisitDeclContext() 568 void DeclPrinter::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
|
| D | TemplateBase.cpp | 63 for (const EnumConstantDecl* ECD : ET->getDecl()->enumerators()) { in printIntegral()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/Index/ |
| D | IndexingContext.cpp | 166 isa<EnumConstantDecl>(D)) { in isTemplateImplicitInstantiation() 238 } else if (const auto *ECD = dyn_cast<EnumConstantDecl>(D)) { in adjustTemplateImplicitInstantiation() 263 isa<EnumConstantDecl>(D) || in isDeclADefinition()
|
| D | IndexDecl.cpp | 342 bool VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| D | EnumCastOutOfRangeChecker.cpp | 74 [](const EnumConstantDecl *D) { return D->getInitVal(); }); in getDeclValuesForEnum()
|
| D | CStringSyntaxChecker.cpp | 171 assert(isa<EnumConstantDecl>(LenArgDRE->getDecl())); in containsBadStrlcpyStrlcatPattern()
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/ |
| D | ClangPersistentVariables.cpp | 94 for (clang::EnumConstantDecl *enumerator_decl : enum_decl->enumerators()) { in RegisterPersistentDecl()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/Analysis/ |
| D | ReachableCode.cpp | 38 return isa<EnumConstantDecl>(DR->getDecl()); in isEnumConstant() 273 if (const EnumConstantDecl *ED = dyn_cast<EnumConstantDecl>(D)) in isConfigurationValue()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| D | CheckerHelpers.cpp | 41 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
|
| /freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/ |
| D | Decl.h | 3037 class EnumConstantDecl : public ValueDecl, public Mergeable<EnumConstantDecl> { 3042 EnumConstantDecl(DeclContext *DC, SourceLocation L, in EnumConstantDecl() function 3050 static EnumConstantDecl *Create(ASTContext &C, EnumDecl *DC, 3054 static EnumConstantDecl *CreateDeserialized(ASTContext &C, unsigned ID); 3066 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() 3067 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() 3702 using enumerator_iterator = specific_decl_iterator<EnumConstantDecl>; 3704 llvm::iterator_range<specific_decl_iterator<EnumConstantDecl>>;
|
| D | TextNodeDumper.h | 328 void VisitEnumConstantDecl(const EnumConstantDecl *D);
|
| D | JSONNodeDumper.h | 245 void VisitEnumConstantDecl(const EnumConstantDecl *ECD);
|
| D | ASTNodeTraverser.h | 416 void VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/ |
| D | SemaDecl.cpp | 2373 auto *ED = cast<EnumConstantDecl>(D); in MergeTypedefNameDecl() 9454 if (auto *ECD = dyn_cast<EnumConstantDecl>(NonParmDecl)) in ActOnFunctionDeclarator() 17730 EnumConstantDecl *Sema::CheckEnumConstant(EnumDecl *Enum, in CheckEnumConstant() 17731 EnumConstantDecl *LastEnumConst, in CheckEnumConstant() 17905 return EnumConstantDecl::Create(Context, Enum, IdLoc, Id, EltTy, in CheckEnumConstant() 17920 auto *PrevECD = dyn_cast_or_null<EnumConstantDecl>(PrevDecl); in shouldSkipAnonEnumBody() 17940 EnumConstantDecl *LastEnumConst = in ActOnEnumConstant() 17941 cast_or_null<EnumConstantDecl>(lastEnumConst); in ActOnEnumConstant() 17969 EnumConstantDecl *New = in ActOnEnumConstant() 17985 if (isa<EnumConstantDecl>(PrevDecl)) in ActOnEnumConstant() [all …]
|
| D | CodeCompleteConsumer.cpp | 663 if (isa<EnumConstantDecl>(D)) in getDeclAvailability()
|
| D | SemaStmt.cpp | 963 static bool CmpEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs, in CmpEnumVals() 964 const std::pair<llvm::APSInt, EnumConstantDecl*>& rhs) in CmpEnumVals() 971 static bool EqEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs, in EqEnumVals() 972 const std::pair<llvm::APSInt, EnumConstantDecl*>& rhs) in EqEnumVals() 1114 typedef SmallVector<std::pair<llvm::APSInt, EnumConstantDecl*>, 64> EnumValsTy; 1617 typedef SmallVector<std::pair<llvm::APSInt, EnumConstantDecl *>, 64> in DiagnoseAssignmentEnum()
|
| D | SemaLambda.cpp | 586 if (EnumConstantDecl *D in findEnumForBlockReturn() 587 = dyn_cast<EnumConstantDecl>(DRE->getDecl())) { in findEnumForBlockReturn()
|
| D | SemaExprMember.cpp | 1135 if (EnumConstantDecl *Enum = dyn_cast<EnumConstantDecl>(MemberDecl)) { in BuildMemberReferenceExpr()
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/ |
| D | USRLocFinder.cpp | 302 if (const auto *T = llvm::dyn_cast<EnumConstantDecl>(Decl)) { in VisitDeclRefExpr()
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/ |
| D | TypeSystemClang.h | 923 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType( 926 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType(
|
| /freebsd-12-stable/contrib/llvm-project/clang/lib/Serialization/ |
| D | ASTReaderDecl.cpp | 361 void VisitEnumConstantDecl(EnumConstantDecl *ECD); 822 void ASTDeclReader::VisitEnumConstantDecl(EnumConstantDecl *ECD) { in VisitEnumConstantDecl() 2648 if (isa<EnumConstantDecl>(ND)) in allowODRLikeMergeInC() 3241 if (isa<EnumConstantDecl>(X)) in isSameEntity() 3839 D = EnumConstantDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
|