| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SuspiciousEnumUsageCheck.cpp | 121 return expr(hasType(enumDecl().bind(DeclName))).bind(RefName); in registerMatchers() 126 hasOperatorName("|"), hasLHS(hasType(enumDecl().bind("enumDecl"))), in registerMatchers() 127 hasRHS(hasType(enumDecl(unless(equalsBoundNode("enumDecl"))) in registerMatchers() 135 hasRHS(expr(hasType(enumDecl(equalsBoundNode("enumDecl")))) in registerMatchers() 142 hasOperands(expr(hasType(isInteger()), unless(hasType(enumDecl()))), in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-include-fixer/find-all-symbols/ |
| H A D | FindAllSymbols.cpp | 186 auto Enums = enumDecl(CommonFilter, isDefinition(), in registerMatchers() 194 anyOf(hasDeclContext(enumDecl(HasNSOrTUCtxMatcher)), ExternCMatcher)); in registerMatchers()
|
| /llvm-project-15.0.7/clang/unittests/AST/ |
| H A D | DeclPrinterTest.cpp | 227 "enum A { a0, a1, a2 };", enumDecl(hasName("A")).bind("id"), in TEST() 234 "enum A { a0 = -1, a1, a2 = 1 };", enumDecl(hasName("A")).bind("id"), in TEST() 242 enumDecl(has(enumConstantDecl(hasName("a0")))).bind("id"), in TEST() 249 "enum class A { a0, a1, a2 };", enumDecl(hasName("A")).bind("id"), in TEST()
|
| H A D | ASTImporterODRStrategiesTest.cpp | 63 BindableMatcher<Decl> getPattern() { return enumDecl(hasName("X")); } in getPattern() 71 BindableMatcher<Decl> getPattern() { return enumDecl(hasName("X")); } in getPattern()
|
| H A D | DeclTest.cpp | 154 selectFirst<TagDecl>("Bar", match(enumDecl().bind("Bar"), Ctx)); in TEST()
|
| H A D | ASTImporterVisibilityTest.cpp | 40 BindableMatcher<Decl> operator()() { return enumDecl(hasName("E")); } in operator ()()
|
| H A D | ASTImporterGenericRedeclTest.cpp | 43 return enumDecl(hasName("X"), unless(isImplicit())); in getPattern()
|
| H A D | ASTImporterTest.cpp | 2923 enumDecl(has(enumConstantDecl(hasName("THING_VALUE"))), in TEST_P() 2932 "main.c", enumDecl(), VerificationMatcher); in TEST_P() 2938 "main.c", enumDecl(), VerificationMatcher); in TEST_P() 5307 auto *E = FirstDeclMatcher<EnumDecl>().match(ToTU, enumDecl(hasName("E"))); in TEST_P() 7294 FromTU, enumDecl(hasName("tagname"), in TEST_P()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/ |
| H A D | Registry.cpp | 233 REGISTER_MATCHER(enumDecl); in RegistryMaps()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersNodeTest.cpp | 220 EXPECT_TRUE(notMatches("class X {};", enumDecl(hasName("X")))); in TEST_P() 228 EXPECT_TRUE(matches("enum X {};", enumDecl(hasName("X")))); in TEST_P()
|
| H A D | ASTMatchersNarrowingTest.cpp | 3889 EXPECT_TRUE(matches("enum class X {};", enumDecl(isScoped()))); in TEST_P() 3893 EXPECT_TRUE(notMatches("enum E { E1 };", enumDecl(isScoped()))); in TEST_P()
|
| H A D | ASTMatchersTraversalTest.cpp | 222 qualType(hasDeclaration(enumDecl(hasName("X"))))))))); in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-move/ |
| H A D | Move.cpp | 648 enumDecl(InOldHeader, HasAnySymbolNames, isDefinition(), TopLevelDecl) in registerMatchers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/ |
| H A D | ChangeNamespace.cpp | 513 auto UnscopedEnumMatcher = enumConstantDecl(hasParent(enumDecl( in registerMatchers()
|
| /llvm-project-15.0.7/clang/lib/ASTMatchers/ |
| H A D | ASTMatchersInternal.cpp | 795 const internal::VariadicDynCastAllOfMatcher<Decl, EnumDecl> enumDecl; variable
|
| /llvm-project-15.0.7/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchers.h | 1279 extern const internal::VariadicDynCastAllOfMatcher<Decl, EnumDecl> enumDecl;
|