Home
last modified time | relevance | path

Searched refs:hasTypedMatcher (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/clang/unittests/ASTMatchers/Dynamic/
H A DVariantValueTest.cpp51 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<Decl>()); in TEST()
52 EXPECT_TRUE(Value.getMatcher().hasTypedMatcher<UnaryOperator>()); in TEST()
58 EXPECT_TRUE(Value.getMatcher().hasTypedMatcher<Decl>()); in TEST()
59 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<UnaryOperator>()); in TEST()
64 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<Decl>()); in TEST()
65 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<Stmt>()); in TEST()
66 EXPECT_TRUE(Value.getMatcher().hasTypedMatcher<Expr>()); in TEST()
67 EXPECT_TRUE(Value.getMatcher().hasTypedMatcher<IntegerLiteral>()); in TEST()
68 EXPECT_FALSE(Value.getMatcher().hasTypedMatcher<GotoStmt>()); in TEST()
90 EXPECT_TRUE(Value.getMatcher().hasTypedMatcher<Decl>()); in TEST()
[all …]
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/Dynamic/
H A DVariantValue.h185 bool hasTypedMatcher() const { in hasTypedMatcher() function
186 return hasTypedMatcher(ASTNodeKind::getFromNodeKind<T>()); in hasTypedMatcher()
189 bool hasTypedMatcher(ASTNodeKind NK) const { in hasTypedMatcher() function
212 assert(hasTypedMatcher<T>() && "hasTypedMatcher<T>() == false"); in getTypedMatcher()
218 assert(hasTypedMatcher(NK) && "hasTypedMatcher(NK) == false"); in getTypedMatcher()
/llvm-project-15.0.7/clang-tools-extra/unittests/clang-query/
H A DQueryParserTest.cpp153 EXPECT_TRUE(cast<LetQuery>(Q)->Value.getMatcher().hasTypedMatcher<Decl>()); in TEST_F()
159 EXPECT_TRUE(cast<LetQuery>(Q)->Value.getMatcher().hasTypedMatcher<Decl>()); in TEST_F()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DMarshallers.h88 return Value.getMatcher().hasTypedMatcher<T>();
954 if (VM.hasTypedMatcher(NK)) {