Home
last modified time | relevance | path

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

123

/freebsd-14.2/contrib/llvm-project/clang/lib/AST/
H A DStmtIterator.cpp91 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) { in HandleDecl()
H A DNSAPI.cpp599 if (const EnumConstantDecl * in isObjCEnumerator()
600 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
H A DDecl.cpp856 } 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 DODRDiagsEmitter.cpp1863 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 DODRHash.cpp520 void VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
756 assert(isa<EnumConstantDecl>(SubDecl) && "Unexpected Decl"); in AddEnumDecl()
H A DDeclPrinter.cpp78 void VisitEnumConstantDecl(EnumConstantDecl *D);
560 else if (isa<EnumConstantDecl>(*D)) { in VisitDeclContext()
657 void DeclPrinter::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
H A DTemplateBase.cpp64 for (const EnumConstantDecl *ECD : ET->getDecl()->enumerators()) { in printIntegral()
/freebsd-14.2/contrib/llvm-project/clang/lib/Index/
H A DIndexingContext.cpp164 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 DClangPersistentVariables.cpp97 for (clang::EnumConstantDecl *enumerator_decl : enum_decl->enumerators()) { in RegisterPersistentDecl()
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DEnumCastOutOfRangeChecker.cpp78 [](const EnumConstantDecl *D) { return D->getInitVal(); }); in getDeclValuesForEnum()
H A DCStringSyntaxChecker.cpp171 assert(isa<EnumConstantDecl>(LenArgDRE->getDecl())); in containsBadStrlcpyStrlcatPattern()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DReachableCode.cpp40 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 DCheckerHelpers.cpp42 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DDecl.h3255 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 DTextNodeDumper.h344 void VisitEnumConstantDecl(const EnumConstantDecl *D);
H A DJSONNodeDumper.h257 void VisitEnumConstantDecl(const EnumConstantDecl *ECD);
H A DASTNodeTraverser.h423 void VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DDeclarationFragments.h290 getFragmentsForEnumConstant(const EnumConstantDecl *);
/freebsd-14.2/contrib/llvm-project/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp303 if (const auto *T = llvm::dyn_cast<EnumConstantDecl>(Decl)) { in VisitDeclRefExpr()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaDecl.cpp2700 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 DSemaStmt.cpp1008 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 DCodeCompleteConsumer.cpp774 if (isa<EnumConstantDecl>(D)) in getDeclAvailability()
H A DSemaExprMember.cpp1169 if (EnumConstantDecl *Enum = dyn_cast<EnumConstantDecl>(MemberDecl)) { in BuildMemberReferenceExpr()
/freebsd-14.2/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.h1006 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType(
1009 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType(
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp429 if (isa<EnumConstantDecl>(Member)) in VisitMemberExpr()

123