| /llvm-project-15.0.7/clang/test/Index/ |
| H A D | complete-type-factors.m | 36 // 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) 43 // CHECK-CC1: EnumConstantDecl:{ResultType enum Priority}{TypedText Low} (32) 45 // CHECK-CC1: EnumConstantDecl:{ResultType enum Color}{TypedText Red} (32) 49 // CHECK-CC2: EnumConstantDecl:{ResultType enum Color}{TypedText Blue} (16) 53 // CHECK-CC2: EnumConstantDecl:{ResultType enum Color}{TypedText Green} (16) 59 // CHECK-CC2: EnumConstantDecl:{ResultType enum Color}{TypedText Red} (16) 63 // CHECK-CC3: EnumConstantDecl:{ResultType enum Color}{TypedText Blue} (65) 75 // CHECK-CC3: EnumConstantDecl:{ResultType enum Color}{TypedText Red} (65) [all …]
|
| H A D | usrs.m | 189 // 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]
|
| H A D | c-index-getCursor-test.m | 106 // CHECK: [41:3 - 41:11] EnumConstantDecl=someEnum:41:3 (Definition)
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousEnumUsageCheck.cpp | 43 [](const EnumConstantDecl *E1, const EnumConstantDecl *E2) { in ValueRange() 64 static bool isNonPowerOf2NorNullLiteral(const EnumConstantDecl *EnumConst) { in isNonPowerOf2NorNullLiteral() 77 [](const EnumConstantDecl *E1, const EnumConstantDecl *E2) { in isMaxValAllBitSetLiteral() 92 [](const EnumConstantDecl *E) { return isNonPowerOf2NorNullLiteral(E); }); in countNonPowOfTwoLiteralNum() 155 EnumExpr ? dyn_cast<EnumConstantDecl>(EnumExpr->getDecl()) : nullptr; in checkSuspiciousBitmaskUsage()
|
| /llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/ |
| H A D | PopulateSwitch.cpp | 62 ExpectedCase(const EnumConstantDecl *Decl) : Data(Decl, false) {} in ExpectedCase() 65 const EnumConstantDecl *getEnumConstant() const { in getEnumConstant() 70 llvm::PointerIntPair<const EnumConstantDecl *, 1, bool> Data; 160 if (auto *Enumerator = dyn_cast<EnumConstantDecl>(DRE->getDecl())) { in REGISTER_TWEAK()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | StmtIterator.cpp | 91 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) { in HandleDecl()
|
| H A D | NSAPI.cpp | 596 if (const EnumConstantDecl * in isObjCEnumerator() 597 EnumD = dyn_cast_or_null<EnumConstantDecl>(DRE->getDecl())) in isObjCEnumerator()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
| H A D | FindAllSymbols.cpp | 28 AST_MATCHER(EnumConstantDecl, isInScopedEnum) { in AST_MATCHER() argument 82 } else if (llvm::isa<EnumConstantDecl>(ND)) { in CreateSymbolInfo() 83 Type = SymbolInfo::SymbolKind::EnumConstantDecl; in CreateSymbolInfo()
|
| H A D | SymbolInfo.h | 36 EnumConstantDecl, enumerator
|
| H A D | SymbolInfo.cpp | 52 io.enumCase(value, "EnumConstantDecl", SymbolKind::EnumConstantDecl); in enumeration()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | UnusedUsingDeclsCheck.cpp | 38 isa<EnumConstantDecl>(TargetDecl); in shouldCheckDecl() 112 } else if (const auto *ECD = dyn_cast<EnumConstantDecl>(Used)) { in check()
|
| /llvm-project-15.0.7/polly/lib/External/isl/interface/ |
| H A D | generator.cc | 235 EnumConstantDecl *ecd = dyn_cast<EnumConstantDecl>(*i); in add_type_subclasses() 259 EnumConstantDecl *ecd = dyn_cast<EnumConstantDecl>(*i); in add_set_enum()
|
| /llvm-project-15.0.7/clang/lib/Index/ |
| H A D | IndexingContext.cpp | 165 isa<EnumConstantDecl>(D)) { in isTemplateImplicitInstantiation() 237 } else if (const auto *ECD = dyn_cast<EnumConstantDecl>(D)) { in adjustTemplateImplicitInstantiation() 261 if (isa<TypedefNameDecl>(D) || isa<EnumConstantDecl>(D) || in isDeclADefinition()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | EnumCastOutOfRangeChecker.cpp | 74 [](const EnumConstantDecl *D) { return D->getInitVal(); }); in getDeclValuesForEnum()
|
| H A D | CStringSyntaxChecker.cpp | 171 assert(isa<EnumConstantDecl>(LenArgDRE->getDecl())); in containsBadStrlcpyStrlcatPattern()
|
| /llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/ |
| H A D | ClangPersistentVariables.cpp | 94 for (clang::EnumConstantDecl *enumerator_decl : enum_decl->enumerators()) { in RegisterPersistentDecl()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | ReachableCode.cpp | 38 return isa<EnumConstantDecl>(DR->getDecl()); in isEnumConstant() 272 if (const EnumConstantDecl *ED = dyn_cast<EnumConstantDecl>(D)) in isConfigurationValue()
|
| /llvm-project-15.0.7/clang/include/clang/ExtractAPI/ |
| H A D | DeclarationFragments.h | 196 getFragmentsForEnumConstant(const EnumConstantDecl *);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/ |
| H A D | SymbolIndexManager.cpp | 139 SymbolInfo::SymbolKind::EnumConstantDecl || in search()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerHelpers.cpp | 41 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
|
| /llvm-project-15.0.7/lldb/test/Shell/SymbolFile/DWARF/x86/ |
| H A D | module-ownership.mm | 37 // FIXME: -EnumConstantDecl {{.*}} imported in A a
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | IdentifierNamingCheck.h | 117 std::string getEnumPrefix(const EnumConstantDecl *ECD) const;
|
| H A D | MagicNumbersCheck.cpp | 36 if (Node.get<EnumConstantDecl>()) in isUsedToInitializeAConstant()
|
| H A D | IdentifierNamingCheck.cpp | 294 if (isa<FunctionDecl, EnumConstantDecl>(ND)) in getDeclTypeName() 511 if (const auto *ECD = dyn_cast<EnumConstantDecl>(ND)) { in getPrefix() 651 const EnumConstantDecl *ECD) const { in getEnumPrefix() 1099 if (const auto *EnumConst = dyn_cast<EnumConstantDecl>(D)) { in findStyleKind()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | Decl.h | 3088 class EnumConstantDecl : public ValueDecl, public Mergeable<EnumConstantDecl> { 3093 EnumConstantDecl(DeclContext *DC, SourceLocation L, in EnumConstantDecl() function 3101 static EnumConstantDecl *Create(ASTContext &C, EnumDecl *DC, 3105 static EnumConstantDecl *CreateDeserialized(ASTContext &C, unsigned ID); 3117 EnumConstantDecl *getCanonicalDecl() override { return getFirstDecl(); } in getCanonicalDecl() 3118 const EnumConstantDecl *getCanonicalDecl() const { return getFirstDecl(); } in getCanonicalDecl() 3775 using enumerator_iterator = specific_decl_iterator<EnumConstantDecl>; 3777 llvm::iterator_range<specific_decl_iterator<EnumConstantDecl>>;
|