Home
last modified time | relevance | path

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

12

/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDStmtIterator.cpp87 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) { in HandleDecl()
HDNSAPI.cpp564 if (const EnumConstantDecl * in isObjCEnumerator()
565 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
HDDecl.cpp802 } else if (isa<EnumConstantDecl>(D)) { in getLVForNamespaceScopeDecl()
3904 EnumConstantDecl *EnumConstantDecl::Create(ASTContext &C, EnumDecl *CD, in Create()
3908 return new (C, CD) EnumConstantDecl(CD, L, Id, T, E, V); in Create()
3911 EnumConstantDecl *
3912 EnumConstantDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
3913 return new (C, ID) EnumConstantDecl(nullptr, SourceLocation(), nullptr, in CreateDeserialized()
3933 SourceRange EnumConstantDecl::getSourceRange() const { in getSourceRange()
HDDeclPrinter.cpp62 void VisitEnumConstantDecl(EnumConstantDecl *D);
321 else if (isa<EnumConstantDecl>(*D)) { in VisitDeclContext()
402 void DeclPrinter::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
HDTemplateBase.cpp44 for (const EnumConstantDecl* ECD : ET->getDecl()->enumerators()) { in printIntegral()
HDASTImporter.cpp129 bool IsStructuralMatch(EnumConstantDecl *FromEC, EnumConstantDecl *ToEC);
140 Decl *VisitEnumConstantDecl(EnumConstantDecl *D);
2271 bool ASTNodeImporter::IsStructuralMatch(EnumConstantDecl *FromEC, in IsStructuralMatch()
2272 EnumConstantDecl *ToEC) in IsStructuralMatch()
2678 Decl *ASTNodeImporter::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
2704 if (EnumConstantDecl *FoundEnumConstant in VisitEnumConstantDecl()
2705 = dyn_cast<EnumConstantDecl>(FoundDecls[I])) { in VisitEnumConstantDecl()
2726 EnumConstantDecl *ToEnumerator in VisitEnumConstantDecl()
2727 = EnumConstantDecl::Create(Importer.getToContext(), cast<EnumDecl>(DC), Loc, in VisitEnumConstantDecl()
HDASTDumper.cpp420 void VisitEnumConstantDecl(const EnumConstantDecl *D);
1071 void ASTDumper::VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
/NextBSD/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
HDCheckerHelpers.cpp36 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
HDExprEngine.cpp1869 if (const EnumConstantDecl *ED = dyn_cast<EnumConstantDecl>(D)) { in VisitCommonDeclRefExpr()
1938 if (isa<VarDecl>(Member) || isa<EnumConstantDecl>(Member)) { in VisitMemberExpr()
/NextBSD/contrib/llvm/tools/clang/lib/Analysis/
HDReachableCode.cpp38 return isa<EnumConstantDecl>(DR->getDecl()); in isEnumConstant()
231 if (const EnumConstantDecl *ED = dyn_cast<EnumConstantDecl>(D)) in isConfigurationValue()
/NextBSD/contrib/llvm/tools/lldb/include/lldb/Core/
HDClangForward.h61 class EnumConstantDecl; variable
/NextBSD/contrib/llvm/tools/clang/lib/Frontend/
HDASTConsumers.cpp430 EnumConstantDecl* ECD = cast<EnumConstantDecl>(I); in PrintDeclContext()
/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDDecl.h2450 class EnumConstantDecl : public ValueDecl, public Mergeable<EnumConstantDecl> {
2454 EnumConstantDecl(DeclContext *DC, SourceLocation L, in EnumConstantDecl() function
2461 static EnumConstantDecl *Create(ASTContext &C, EnumDecl *DC,
2465 static EnumConstantDecl *CreateDeserialized(ASTContext &C, unsigned ID);
2477 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
2478 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3083 typedef specific_decl_iterator<EnumConstantDecl> enumerator_iterator;
3084 typedef llvm::iterator_range<specific_decl_iterator<EnumConstantDecl>>
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaDecl.cpp13507 EnumConstantDecl *Sema::CheckEnumConstant(EnumDecl *Enum, in CheckEnumConstant()
13508 EnumConstantDecl *LastEnumConst, in CheckEnumConstant()
13674 return EnumConstantDecl::Create(Context, Enum, IdLoc, Id, EltTy, in CheckEnumConstant()
13689 auto *PrevECD = dyn_cast_or_null<EnumConstantDecl>(PrevDecl); in shouldSkipAnonEnumBody()
13707 EnumConstantDecl *LastEnumConst = in ActOnEnumConstant()
13708 cast_or_null<EnumConstantDecl>(lastEnumConst); in ActOnEnumConstant()
13731 if (isa<EnumConstantDecl>(PrevDecl)) in ActOnEnumConstant()
13749 EnumConstantDecl *New = in ActOnEnumConstant()
13772 static bool ValidDuplicateEnum(EnumConstantDecl *ECD, EnumDecl *Enum) { in ValidDuplicateEnum()
13795 EnumConstantDecl *EnumConstant = dyn_cast<EnumConstantDecl>(DRE->getDecl()); in ValidDuplicateEnum()
[all …]
HDCodeCompleteConsumer.cpp528 if (isa<EnumConstantDecl>(D)) in getDeclAvailability()
HDSemaStmt.cpp553 static bool CmpEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs, in CmpEnumVals()
554 const std::pair<llvm::APSInt, EnumConstantDecl*>& rhs) in CmpEnumVals()
561 static bool EqEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs, in EqEnumVals()
562 const std::pair<llvm::APSInt, EnumConstantDecl*>& rhs) in EqEnumVals()
691 typedef SmallVector<std::pair<llvm::APSInt, EnumConstantDecl*>, 64> EnumValsTy;
1193 typedef SmallVector<std::pair<llvm::APSInt, EnumConstantDecl *>, 64> in DiagnoseAssignmentEnum()
HDSemaLambda.cpp503 if (EnumConstantDecl *D in findEnumForBlockReturn()
504 = dyn_cast<EnumConstantDecl>(DRE->getDecl())) { in findEnumForBlockReturn()
HDSemaExprMember.cpp1096 if (EnumConstantDecl *Enum = dyn_cast<EnumConstantDecl>(MemberDecl)) { in BuildMemberReferenceExpr()
HDSemaTemplateInstantiateDecl.cpp858 EnumConstantDecl *LastEnumConst = nullptr; in InstantiateEnumDefinition()
877 EnumConstantDecl *EnumConst in InstantiateEnumDefinition()
912 Decl *TemplateDeclInstantiator::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
4617 } else if (EnumConstantDecl *ED = dyn_cast<EnumConstantDecl>(D)) { in FindInstantiatedDecl()
HDSemaCodeComplete.cpp666 else if (const EnumConstantDecl *Enumerator = dyn_cast<EnumConstantDecl>(ND)) in getDeclUsageType()
731 if (isa<EnumConstantDecl>(ND)) in getBasePriority()
2079 } else if (const EnumConstantDecl *Enumerator = dyn_cast<EnumConstantDecl>(ND)) in AddResultTypeChunk()
3846 llvm::SmallPtrSet<EnumConstantDecl *, 8> EnumeratorsSeen; in CodeCompleteCase()
3856 if (EnumConstantDecl *Enumerator in CodeCompleteCase()
3857 = dyn_cast<EnumConstantDecl>(DRE->getDecl())) { in CodeCompleteCase()
/NextBSD/contrib/llvm/tools/lldb/include/lldb/Symbol/
HDType.h912 TypeEnumMemberImpl (const clang::EnumConstantDecl* enum_member_decl,
/NextBSD/contrib/llvm/tools/lldb/source/Symbol/
HDType.cpp1417 TypeEnumMemberImpl::TypeEnumMemberImpl (const clang::EnumConstantDecl* enum_member_decl, in TypeEnumMemberImpl()
/NextBSD/contrib/llvm/tools/clang/lib/Serialization/
HDASTReaderDecl.cpp301 void VisitEnumConstantDecl(EnumConstantDecl *ECD);
702 void ASTDeclReader::VisitEnumConstantDecl(EnumConstantDecl *ECD) { in VisitEnumConstantDecl()
2630 if (isa<EnumConstantDecl>(X)) in isSameEntity()
3127 D = EnumConstantDecl::CreateDeserialized(Context, ID); in ReadDeclRecord()
HDASTWriterDecl.cpp78 void VisitEnumConstantDecl(EnumConstantDecl *D);
420 void ASTDeclWriter::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
/NextBSD/contrib/llvm/tools/clang/lib/Edit/
HDRewriteObjCFoundationAPI.cpp968 return isa<EnumConstantDecl>(VD); in isEnumConstant()

12