Home
last modified time | relevance | path

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

12

/external/clang/test/Index/
Dcomplete-type-factors.m36 // CHECK-CC1: EnumConstantDecl:{ResultType enum Color}{TypedText Blue} (32)
40 // CHECK-CC1: EnumConstantDecl:{ResultType enum Color}{TypedText Green} (32)
41 // CHECK-CC1: EnumConstantDecl:{ResultType enum Priority}{TypedText High} (32)
44 // CHECK-CC1: EnumConstantDecl:{ResultType enum Priority}{TypedText Low} (32)
46 // CHECK-CC1: EnumConstantDecl:{ResultType enum Color}{TypedText Red} (32)
50 // CHECK-CC2: EnumConstantDecl:{ResultType enum Color}{TypedText Blue} (16)
55 // CHECK-CC2: EnumConstantDecl:{ResultType enum Color}{TypedText Green} (16)
56 // CHECK-CC2: EnumConstantDecl:{ResultType enum Priority}{TypedText High} (65)
59 // CHECK-CC2: EnumConstantDecl:{ResultType enum Priority}{TypedText Low} (65)
61 // CHECK-CC2: EnumConstantDecl:{ResultType enum Color}{TypedText Red} (16)
[all …]
Dusrs.m189 // CHECK-source: usrs.m:6:3: EnumConstantDecl=ABA:6:3 (Definition) Extent=[6:3 - 6:6]
190 // CHECK-source: usrs.m:7:3: EnumConstantDecl=CADABA:7:3 (Definition) Extent=[7:3 - 7:9]
192 // CHECK-source: usrs.m:11:3: EnumConstantDecl=FOO:11:3 (Definition) Extent=[11:3 - 11:6]
193 // CHECK-source: usrs.m:12:3: EnumConstantDecl=BAR:12:3 (Definition) Extent=[12:3 - 12:6]
199 // CHECK-source: usrs.m:21:3: EnumConstantDecl=CHEESE:21:3 (Definition) Extent=[21:3 - 21:9]
200 // CHECK-source: usrs.m:22:3: EnumConstantDecl=MUSHROOMS:22:3 (Definition) Extent=[22:3 - 22:12]
Dc-index-getCursor-test.m106 // CHECK: [41:3 - 41:11] EnumConstantDecl=someEnum:41:3 (Definition)
Dc-index-api-loadTU-test.m108 // CHECK: c-index-api-loadTU-test.m:43:3: EnumConstantDecl=someEnum:43:3 (Definition) Extent=[43:3 …
/external/clang/lib/AST/
DStmtIterator.cpp87 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) { in HandleDecl()
DNSAPI.cpp538 if (const EnumConstantDecl * in isObjCEnumerator()
539 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
DDecl.cpp796 } else if (isa<EnumConstantDecl>(D)) { in getLVForNamespaceScopeDecl()
3888 EnumConstantDecl *EnumConstantDecl::Create(ASTContext &C, EnumDecl *CD, in Create()
3892 return new (C, CD) EnumConstantDecl(CD, L, Id, T, E, V); in Create()
3895 EnumConstantDecl *
3896 EnumConstantDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
3897 return new (C, ID) EnumConstantDecl(nullptr, SourceLocation(), nullptr, in CreateDeserialized()
3917 SourceRange EnumConstantDecl::getSourceRange() const { in getSourceRange()
DDeclPrinter.cpp53 void VisitEnumConstantDecl(EnumConstantDecl *D);
312 else if (isa<EnumConstantDecl>(*D)) { in VisitDeclContext()
393 void DeclPrinter::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
DTemplateBase.cpp44 for (const EnumConstantDecl* ECD : ET->getDecl()->enumerators()) { in printIntegral()
DASTImporter.cpp129 bool IsStructuralMatch(EnumConstantDecl *FromEC, EnumConstantDecl *ToEC);
140 Decl *VisitEnumConstantDecl(EnumConstantDecl *D);
2217 bool ASTNodeImporter::IsStructuralMatch(EnumConstantDecl *FromEC, in IsStructuralMatch()
2218 EnumConstantDecl *ToEC) in IsStructuralMatch()
2612 Decl *ASTNodeImporter::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
2635 if (EnumConstantDecl *FoundEnumConstant in VisitEnumConstantDecl()
2636 = dyn_cast<EnumConstantDecl>(FoundDecls[I])) { in VisitEnumConstantDecl()
2657 EnumConstantDecl *ToEnumerator in VisitEnumConstantDecl()
2658 = EnumConstantDecl::Create(Importer.getToContext(), cast<EnumDecl>(DC), Loc, in VisitEnumConstantDecl()
/external/clang/lib/StaticAnalyzer/Core/
DCheckerHelpers.cpp38 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
/external/clang/lib/Analysis/
DReachableCode.cpp38 return isa<EnumConstantDecl>(DR->getDecl()); in isEnumConstant()
231 if (const EnumConstantDecl *ED = dyn_cast<EnumConstantDecl>(D)) in isConfigurationValue()
/external/clang/lib/Frontend/
DASTConsumers.cpp430 EnumConstantDecl* ECD = cast<EnumConstantDecl>(I); in PrintDeclContext()
/external/clang/tools/libclang/
DCXType.cpp278 if (const EnumConstantDecl *TD = dyn_cast_or_null<EnumConstantDecl>(D)) { in clang_getEnumConstantDeclValue()
294 if (const EnumConstantDecl *TD = dyn_cast_or_null<EnumConstantDecl>(D)) { in clang_getEnumConstantDeclUnsignedValue()
DCursorVisitor.h211 bool VisitEnumConstantDecl(EnumConstantDecl *D);
DIndexDecl.cpp116 bool VisitEnumConstantDecl(const EnumConstantDecl *D) { in VisitEnumConstantDecl()
DIndexingContext.h406 bool handleEnumerator(const EnumConstantDecl *D);
/external/clang/include/clang/AST/
DDecl.h2407 class EnumConstantDecl : public ValueDecl, public Mergeable<EnumConstantDecl> {
2411 EnumConstantDecl(DeclContext *DC, SourceLocation L, in EnumConstantDecl() function
2418 static EnumConstantDecl *Create(ASTContext &C, EnumDecl *DC,
2422 static EnumConstantDecl *CreateDeserialized(ASTContext &C, unsigned ID);
2434 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl()
2435 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl()
3037 typedef specific_decl_iterator<EnumConstantDecl> enumerator_iterator;
3038 typedef llvm::iterator_range<specific_decl_iterator<EnumConstantDecl>>
/external/clang/lib/Sema/
DSemaDecl.cpp13254 EnumConstantDecl *Sema::CheckEnumConstant(EnumDecl *Enum, in CheckEnumConstant()
13255 EnumConstantDecl *LastEnumConst, in CheckEnumConstant()
13421 return EnumConstantDecl::Create(Context, Enum, IdLoc, Id, EltTy, in CheckEnumConstant()
13431 EnumConstantDecl *LastEnumConst = in ActOnEnumConstant()
13432 cast_or_null<EnumConstantDecl>(lastEnumConst); in ActOnEnumConstant()
13455 if (isa<EnumConstantDecl>(PrevDecl)) in ActOnEnumConstant()
13476 EnumConstantDecl *New = in ActOnEnumConstant()
13499 static bool ValidDuplicateEnum(EnumConstantDecl *ECD, EnumDecl *Enum) { in ValidDuplicateEnum()
13522 EnumConstantDecl *EnumConstant = dyn_cast<EnumConstantDecl>(DRE->getDecl()); in ValidDuplicateEnum()
13572 typedef SmallVector<EnumConstantDecl *, 3> ECDVector; in CheckForDuplicateEnumValues()
[all …]
DCodeCompleteConsumer.cpp526 if (isa<EnumConstantDecl>(D)) in getDeclAvailability()
DSemaStmt.cpp551 static bool CmpEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs, in CmpEnumVals()
552 const std::pair<llvm::APSInt, EnumConstantDecl*>& rhs) in CmpEnumVals()
559 static bool EqEnumVals(const std::pair<llvm::APSInt, EnumConstantDecl*>& lhs, in EqEnumVals()
560 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()
DSemaLambda.cpp503 if (EnumConstantDecl *D in findEnumForBlockReturn()
504 = dyn_cast<EnumConstantDecl>(DRE->getDecl())) { in findEnumForBlockReturn()
DSemaExprMember.cpp1113 if (EnumConstantDecl *Enum = dyn_cast<EnumConstantDecl>(MemberDecl)) { in BuildMemberReferenceExpr()
DSemaTemplateInstantiateDecl.cpp826 EnumConstantDecl *LastEnumConst = nullptr; in InstantiateEnumDefinition()
845 EnumConstantDecl *EnumConst in InstantiateEnumDefinition()
880 Decl *TemplateDeclInstantiator::VisitEnumConstantDecl(EnumConstantDecl *D) { in VisitEnumConstantDecl()
4547 } else if (EnumConstantDecl *ED = dyn_cast<EnumConstantDecl>(D)) { in FindInstantiatedDecl()
/external/v8/tools/gcmole/
Dgcmole.cc76 const clang::EnumConstantDecl* enum_constant = in IsExternalVMState()
77 llvm::dyn_cast<clang::EnumConstantDecl>(var); in IsExternalVMState()

12