Home
last modified time | relevance | path

Searched refs:enumDecl (Results 1 – 20 of 20) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DSuspiciousEnumUsageCheck.cpp122 ignoringImpCasts(hasType(enumDecl().bind(DeclName)))); in registerMatchers()
128 ignoringImpCasts(hasType(enumDecl( in registerMatchers()
138 enumDecl(equalsBoundNode("enumDecl"))))))), in registerMatchers()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DFieldsResolutionTest.java88 EnumDeclaration enumDecl = Navigator.demandEnum(cu, "AccessEnumMemberThroughThis"); in accessEnumFieldThroughThis() local
89 MethodDeclaration method = Navigator.demandMethod(enumDecl, "getLabel"); in accessEnumFieldThroughThis()
100 EnumDeclaration enumDecl = Navigator.demandEnum(cu, "AccessEnumMemberThroughThis"); in accessEnumMethodThroughThis() local
101 MethodDeclaration method = Navigator.demandMethod(enumDecl, "getLabel2"); in accessEnumMethodThroughThis()
/external/llvm-project/clang-tools-extra/clang-include-fixer/find-all-symbols/
DFindAllSymbols.cpp186 auto Enums = enumDecl(CommonFilter, isDefinition(), in registerMatchers()
194 anyOf(hasDeclContext(enumDecl(HasNSOrTUCtxMatcher)), ExternCMatcher)); in registerMatchers()
/external/llvm-project/clang/unittests/AST/
DDeclPrinterTest.cpp278 "enum A { a0, a1, a2 };", enumDecl(hasName("A")).bind("id"), in TEST()
285 "enum A { a0 = -1, a1, a2 = 1 };", enumDecl(hasName("A")).bind("id"), in TEST()
293 enumDecl(has(enumConstantDecl(hasName("a0")))).bind("id"), in TEST()
300 "enum class A { a0, a1, a2 };", enumDecl(hasName("A")).bind("id"), in TEST()
DASTImporterODRStrategiesTest.cpp63 BindableMatcher<Decl> getPattern() { return enumDecl(hasName("X")); } in getPattern()
71 BindableMatcher<Decl> getPattern() { return enumDecl(hasName("X")); } in getPattern()
DASTImporterVisibilityTest.cpp40 BindableMatcher<Decl> operator()() { return enumDecl(hasName("E")); } in operator ()()
DASTImporterGenericRedeclTest.cpp43 return enumDecl(hasName("X"), unless(isImplicit())); in getPattern()
DASTImporterTest.cpp2712 enumDecl(has(enumConstantDecl(hasName("THING_VALUE"))), in TEST_P()
2721 "main.c", enumDecl(), VerificationMatcher); in TEST_P()
2727 "main.c", enumDecl(), VerificationMatcher); in TEST_P()
4665 auto *E = FirstDeclMatcher<EnumDecl>().match(ToTU, enumDecl(hasName("E"))); in TEST_P()
/external/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp173 REGISTER_MATCHER(enumDecl); in RegistryMaps()
/external/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp164 EXPECT_TRUE(notMatches("class X {};", enumDecl(hasName("X")))); in TEST()
168 EXPECT_TRUE(matches("enum X {};", enumDecl(hasName("X")))); in TEST()
DASTMatchersTraversalTest.cpp221 qualType(hasDeclaration(enumDecl(hasName("X"))))))))); in TEST()
/external/llvm-project/clang/lib/ASTMatchers/Dynamic/
DRegistry.cpp220 REGISTER_MATCHER(enumDecl); in RegistryMaps()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp220 EXPECT_TRUE(notMatches("class X {};", enumDecl(hasName("X")))); in TEST_P()
228 EXPECT_TRUE(matches("enum X {};", enumDecl(hasName("X")))); in TEST_P()
DASTMatchersNarrowingTest.cpp3387 EXPECT_TRUE(matches("enum class X {};", enumDecl(isScoped()))); in TEST_P()
3391 EXPECT_TRUE(notMatches("enum E { E1 };", enumDecl(isScoped()))); in TEST_P()
DASTMatchersTraversalTest.cpp220 qualType(hasDeclaration(enumDecl(hasName("X"))))))))); in TEST()
/external/llvm-project/clang-tools-extra/clang-move/
DMove.cpp648 enumDecl(InOldHeader, HasAnySymbolNames, isDefinition(), TopLevelDecl) in registerMatchers()
/external/llvm-project/clang/lib/ASTMatchers/
DASTMatchersInternal.cpp772 const internal::VariadicDynCastAllOfMatcher<Decl, EnumDecl> enumDecl; variable
/external/llvm-project/clang-tools-extra/clang-change-namespace/
DChangeNamespace.cpp513 auto UnscopedEnumMatcher = enumConstantDecl(hasParent(enumDecl( in registerMatchers()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h897 const internal::VariadicDynCastAllOfMatcher<Decl, EnumDecl> enumDecl; variable
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h1259 extern const internal::VariadicDynCastAllOfMatcher<Decl, EnumDecl> enumDecl;