Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/clang/lib/AST/
H A DStmtIterator.cpp91 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) { in HandleDecl()
H A DNSAPI.cpp572 if (const EnumConstantDecl * in isObjCEnumerator()
573 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
H A DDecl.cpp863 } 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 DODRDiagsEmitter.cpp1868 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 DODRHash.cpp527 void VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
769 assert(isa<EnumConstantDecl>(SubDecl) && "Unexpected Decl"); in AddEnumDecl()
H A DDeclPrinter.cpp67 void VisitEnumConstantDecl(EnumConstantDecl *D);
514 else if (isa<EnumConstantDecl>(*D)) { in VisitDeclContext()
611 void DeclPrinter::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
H A DTemplateBase.cpp64 for (const EnumConstantDecl *ECD : ET->getDecl()->enumerators()) { in printIntegral()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaBPF.cpp96 const EnumConstantDecl *Enumerator = in isValidPreserveEnumValueArg()
97 dyn_cast<EnumConstantDecl>(DR->getDecl()); in isValidPreserveEnumValueArg()
H A DSemaDecl.cpp1214 (!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 DSemaAPINotes.cpp566 static void ProcessAPINotes(Sema &S, EnumConstantDecl *D, in ProcessAPINotes()
923 if (auto EnumConstant = dyn_cast<EnumConstantDecl>(D)) { in ProcessAPINotes()
H A DSemaStmt.cpp1031 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 DCodeCompleteConsumer.cpp774 if (isa<EnumConstantDecl>(D)) in getDeclAvailability()
H A DSemaSwift.cpp575 } else if ((isa<EnumConstantDecl>(D) || isa<ObjCProtocolDecl>(D) || in DiagnoseName()
H A DSemaExprMember.cpp1178 if (EnumConstantDecl *Enum = dyn_cast<EnumConstantDecl>(MemberDecl)) { in BuildMemberReferenceExpr()
/freebsd/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangPersistentVariables.cpp97 for (clang::EnumConstantDecl *enumerator_decl : enum_decl->enumerators()) { in RegisterPersistentDecl()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DReachableCode.cpp41 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 DCheckerHelpers.cpp43 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDecl.h3268 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 DTextNodeDumper.h357 void VisitEnumConstantDecl(const EnumConstantDecl *D);
H A DJSONNodeDumper.h260 void VisitEnumConstantDecl(const EnumConstantDecl *ECD);
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCStringSyntaxChecker.cpp171 assert(isa<EnumConstantDecl>(LenArgDRE->getDecl())); in containsBadStrlcpyStrlcatPattern()
/freebsd/contrib/llvm-project/clang/include/clang/ExtractAPI/
H A DDeclarationFragments.h332 getFragmentsForEnumConstant(const EnumConstantDecl *);
/freebsd/contrib/llvm-project/lldb/source/Plugins/TypeSystem/Clang/
H A DTypeSystemClang.h1027 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType(
1030 clang::EnumConstantDecl *AddEnumerationValueToEnumerationType(
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp475 if (isa<EnumConstantDecl>(Member)) in VisitMemberExpr()
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexDecl.cpp348 bool VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()

123