Home
last modified time | relevance | path

Searched refs:EnumConstantDecl (Results 1 – 25 of 56) sorted by relevance

123

/freebsd-12-stable/contrib/llvm-project/clang/lib/AST/
DStmtIterator.cpp91 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) { in HandleDecl()
DNSAPI.cpp595 if (const EnumConstantDecl * in isObjCEnumerator()
596 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
DDecl.cpp862 } 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()
DODRHash.cpp434 void VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
618 assert(isa<EnumConstantDecl>(SubDecl) && "Unexpected Decl"); in AddEnumDecl()
DDeclPrinter.cpp66 void VisitEnumConstantDecl(EnumConstantDecl *D);
471 else if (isa<EnumConstantDecl>(*D)) { in VisitDeclContext()
568 void DeclPrinter::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
DTemplateBase.cpp63 for (const EnumConstantDecl* ECD : ET->getDecl()->enumerators()) { in printIntegral()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Index/
DIndexingContext.cpp166 isa<EnumConstantDecl>(D)) { in isTemplateImplicitInstantiation()
238 } else if (const auto *ECD = dyn_cast<EnumConstantDecl>(D)) { in adjustTemplateImplicitInstantiation()
263 isa<EnumConstantDecl>(D) || in isDeclADefinition()
DIndexDecl.cpp342 bool VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
/freebsd-12-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
DEnumCastOutOfRangeChecker.cpp74 [](const EnumConstantDecl *D) { return D->getInitVal(); }); in getDeclValuesForEnum()
DCStringSyntaxChecker.cpp171 assert(isa<EnumConstantDecl>(LenArgDRE->getDecl())); in containsBadStrlcpyStrlcatPattern()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
DClangPersistentVariables.cpp94 for (clang::EnumConstantDecl *enumerator_decl : enum_decl->enumerators()) { in RegisterPersistentDecl()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Analysis/
DReachableCode.cpp38 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/
DCheckerHelpers.cpp41 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
/freebsd-12-stable/contrib/llvm-project/clang/include/clang/AST/
DDecl.h3037 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>>;
DTextNodeDumper.h328 void VisitEnumConstantDecl(const EnumConstantDecl *D);
DJSONNodeDumper.h245 void VisitEnumConstantDecl(const EnumConstantDecl *ECD);
DASTNodeTraverser.h416 void VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Sema/
DSemaDecl.cpp2373 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 …]
DCodeCompleteConsumer.cpp663 if (isa<EnumConstantDecl>(D)) in getDeclAvailability()
DSemaStmt.cpp963 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()
DSemaLambda.cpp586 if (EnumConstantDecl *D in findEnumForBlockReturn()
587 = dyn_cast<EnumConstantDecl>(DRE->getDecl())) { in findEnumForBlockReturn()
DSemaExprMember.cpp1135 if (EnumConstantDecl *Enum = dyn_cast<EnumConstantDecl>(MemberDecl)) { in BuildMemberReferenceExpr()
/freebsd-12-stable/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
DUSRLocFinder.cpp302 if (const auto *T = llvm::dyn_cast<EnumConstantDecl>(Decl)) { in VisitDeclRefExpr()
/freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
DTypeSystemClang.h923 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType(
926 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType(
/freebsd-12-stable/contrib/llvm-project/clang/lib/Serialization/
DASTReaderDecl.cpp361 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()

123