Home | History | Annotate | Download | only in Dynamic

Lines Matching refs:constructMatcher

39   MatcherList constructMatcher(StringRef MatcherName,
44 Registry::constructMatcher(MatcherName, SourceRange(), Args(), Error);
49 MatcherList constructMatcher(StringRef MatcherName, const VariantValue &Arg1,
53 const MatcherList Out = Registry::constructMatcher(
59 MatcherList constructMatcher(StringRef MatcherName, const VariantValue &Arg1,
64 const MatcherList Out = Registry::constructMatcher(
72 Matcher<Stmt> IsArrowValue = constructMatcher(
73 "memberExpr", constructMatcher("isArrow")).getTypedMatcher<Stmt>();
75 constructMatcher("boolLiteral").getTypedMatcher<Stmt>();
89 Matcher<Decl> Value = constructMatcher(
90 "namedDecl", constructMatcher("hasName", std::string("X")))
95 Value = functionDecl(constructMatcher("parameterCountIs", 2)
103 constructMatcher("varDecl", constructMatcher("hasInitializer", stmt()))
105 Matcher<Decl> HasInitializerComplex = constructMatcher(
106 "varDecl", constructMatcher("hasInitializer", callExpr()))
121 Matcher<Decl> HasParameter = functionDecl(constructMatcher(
128 Matcher<Stmt> CallExpr0 = constructMatcher(
130 constructMatcher("callee", constructMatcher("memberExpr",
131 constructMatcher("isArrow"))))
134 Matcher<Stmt> CallExpr1 = constructMatcher(
136 constructMatcher(
138 constructMatcher("methodDecl",
139 constructMatcher("hasName", std::string("x")))))
152 const MatcherList IsDefinition = constructMatcher("isDefinition");
154 constructMatcher("varDecl", IsDefinition).getTypedMatcher<Decl>();
156 constructMatcher("recordDecl", IsDefinition).getTypedMatcher<Decl>();
158 constructMatcher("functionDecl", IsDefinition).getTypedMatcher<Decl>();
166 Matcher<Decl> Anything = constructMatcher("anything").getTypedMatcher<Decl>();
168 constructMatcher("recordDecl", Anything).getTypedMatcher<Decl>();
185 Matcher<Decl> HasTemplateArgument = constructMatcher(
187 constructMatcher(
189 constructMatcher("refersToType",
190 constructMatcher("asString", std::string("int")))))
199 Matcher<Type> M = constructMatcher(
201 constructMatcher("pointee", constructMatcher("isConstQualified"),
202 constructMatcher("isInteger"))).getTypedMatcher<Type>();
206 M = constructMatcher(
208 constructMatcher("hasElementType", constructMatcher("builtinType")))
215 Matcher<Decl> CtorDecl = constructMatcher(
217 constructMatcher("hasAnyConstructorInitializer",
218 constructMatcher("forField", hasName("foo"))))
226 Matcher<Decl> D = constructMatcher(
228 constructMatcher(
230 constructMatcher("recordDecl",
231 constructMatcher("hasName", std::string("X")))))
237 Matcher<Stmt> S = constructMatcher(
239 constructMatcher(
241 constructMatcher("varDecl",
242 constructMatcher("hasName", std::string("X")))))
249 S = constructMatcher(
250 "compoundStmt", constructMatcher("hasParent", constructMatcher("ifStmt")))
259 EXPECT_TRUE(constructMatcher("hasInitializer", Error.get()).empty());
263 EXPECT_TRUE(constructMatcher("isArrow", std::string(), Error.get()).empty());
269 EXPECT_TRUE(constructMatcher("ofClass", std::string(), Error.get()).empty());
274 EXPECT_TRUE(constructMatcher("recordDecl", recordDecl(), parameterCountIs(3),