Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/clang/test/Index/
H A 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)
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 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]
H A Dc-index-getCursor-test.m106 // CHECK: [41:3 - 41:11] EnumConstantDecl=someEnum:41:3 (Definition)
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DSuspiciousEnumUsageCheck.cpp43 [](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 DPopulateSwitch.cpp62 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 DStmtIterator.cpp91 else if (EnumConstantDecl* ECD = dyn_cast<EnumConstantDecl>(D)) { in HandleDecl()
H A DNSAPI.cpp596 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 DFindAllSymbols.cpp28 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 DSymbolInfo.h36 EnumConstantDecl, enumerator
H A DSymbolInfo.cpp52 io.enumCase(value, "EnumConstantDecl", SymbolKind::EnumConstantDecl); in enumeration()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnusedUsingDeclsCheck.cpp38 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 Dgenerator.cc235 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 DIndexingContext.cpp165 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 DEnumCastOutOfRangeChecker.cpp74 [](const EnumConstantDecl *D) { return D->getInitVal(); }); in getDeclValuesForEnum()
H A DCStringSyntaxChecker.cpp171 assert(isa<EnumConstantDecl>(LenArgDRE->getDecl())); in containsBadStrlcpyStrlcatPattern()
/llvm-project-15.0.7/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangPersistentVariables.cpp94 for (clang::EnumConstantDecl *enumerator_decl : enum_decl->enumerators()) { in RegisterPersistentDecl()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DReachableCode.cpp38 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 DDeclarationFragments.h196 getFragmentsForEnumConstant(const EnumConstantDecl *);
/llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/
H A DSymbolIndexManager.cpp139 SymbolInfo::SymbolKind::EnumConstantDecl || in search()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp41 if (DR && isa<EnumConstantDecl>(DR->getDecl())) in containsEnum()
/llvm-project-15.0.7/lldb/test/Shell/SymbolFile/DWARF/x86/
H A Dmodule-ownership.mm37 // FIXME: -EnumConstantDecl {{.*}} imported in A a
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DIdentifierNamingCheck.h117 std::string getEnumPrefix(const EnumConstantDecl *ECD) const;
H A DMagicNumbersCheck.cpp36 if (Node.get<EnumConstantDecl>()) in isUsedToInitializeAConstant()
H A DIdentifierNamingCheck.cpp294 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 DDecl.h3088 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>>;

1234