reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/ASTMatchers/Dynamic/RegistryTest.cpp
  128   Matcher<Stmt> IsArrowValue = constructMatcher(
  145   Matcher<Decl> Value = constructMatcher(
  146       "namedDecl", constructMatcher("hasName", StringRef("X")))
  151   Value = functionDecl(constructMatcher("parameterCountIs", 2)
  158   Matcher<Decl> HasInitializerSimple = constructMatcher(
  159       "varDecl", constructMatcher("hasInitializer", constructMatcher("stmt")))
  161   Matcher<Decl> HasInitializerComplex = constructMatcher(
  163       constructMatcher("hasInitializer", constructMatcher("callExpr")))
  180           "hasParameter", 1, constructMatcher("hasName", StringRef("x")))
  187   Matcher<Stmt> CallExpr0 = constructMatcher(
  189       constructMatcher("callee", constructMatcher("memberExpr",
  189       constructMatcher("callee", constructMatcher("memberExpr",
  193   Matcher<Stmt> CallExpr1 = constructMatcher(
  195       constructMatcher(
  197           constructMatcher("cxxMethodDecl",
  198                            constructMatcher("hasName", StringRef("x")))))
  210       constructMatcher(
  211           "loc", constructMatcher("asString", StringRef("const double *")))
  215       constructMatcher(
  232       constructMatcher("varDecl", IsDefinition).getTypedMatcher<Decl>();
  234       constructMatcher("recordDecl", IsDefinition).getTypedMatcher<Decl>();
  236       constructMatcher("functionDecl", IsDefinition).getTypedMatcher<Decl>();
  246       "recordDecl", constructMatcher("hasName", StringRef("Foo")),
  256   Matcher<Stmt> ConstructExpr = constructMatcher(
  258       constructMatcher(
  260           constructMatcher(
  262               constructMatcher(
  263                   "ofClass", constructMatcher("hasName", StringRef("Foo"))))))
  271   Matcher<Decl> HasTemplateArgument = constructMatcher(
  273       constructMatcher(
  275           constructMatcher("refersToType",
  276                            constructMatcher("asString", StringRef("int")))))
  285   Matcher<Type> M = constructMatcher(
  292   M = constructMatcher(
  294       constructMatcher("hasElementType", constructMatcher("builtinType")))
  301   Matcher<Decl> CtorDecl = constructMatcher(
  303       constructMatcher(
  305           constructMatcher("forField",
  306                            constructMatcher("hasName", StringRef("foo")))))
  314   Matcher<Decl> D = constructMatcher(
  316       constructMatcher(
  318           constructMatcher("recordDecl",
  319                            constructMatcher("hasName", StringRef("X")))))
  325   Matcher<Stmt> S = constructMatcher(
  327       constructMatcher(
  329           constructMatcher("varDecl",
  330                            constructMatcher("hasName", StringRef("X")))))
  337   S = constructMatcher(
  338       "compoundStmt", constructMatcher("hasParent", constructMatcher("ifStmt")))
  347       constructMatcher("recordDecl",
  348                        constructMatcher("hasName", StringRef("Foo"))),
  349       constructMatcher("functionDecl",
  350                        constructMatcher("hasName", StringRef("foo"))))
  359       constructMatcher(
  362                            constructMatcher("hasName", StringRef("Foo")),
  363                            constructMatcher("hasName", StringRef("Bar")))))
  374       constructMatcher(
  376           constructMatcher("namedDecl",
  377                            constructMatcher("hasName", StringRef("Bar"))))
  384           "namedDecl", constructMatcher("hasName", StringRef("Foo")),
  385           constructMatcher("unless", constructMatcher("recordDecl")))
  398   EXPECT_TRUE(constructMatcher("isArrow", StringRef(), Error.get()).isNull());
  413   EXPECT_TRUE(constructMatcher("ofClass", StringRef(), Error.get()).isNull());
  420                        constructMatcher("parameterCountIs", 3), Error.get())
  434   EXPECT_TRUE(constructMatcher(
  437                        constructMatcher("isDerivedFrom", StringRef("FOO")),
  501   Matcher<Decl> Value = constructMatcher(
  502       "decl", constructMatcher("hasAttr", StringRef("attr::WarnUnused")))
  515   Matcher<Stmt> BooleanStmt = constructMatcher(
  516       "cxxBoolLiteral", constructMatcher("equals", VariantValue(true)))
  522   BooleanStmt = constructMatcher(
  523       "cxxBoolLiteral", constructMatcher("equals", VariantValue(0)))
  529   Matcher<Stmt> DoubleStmt = constructMatcher(
  530       "floatLiteral", constructMatcher("equals", VariantValue(1.2)))
  541   Matcher<Stmt> IntegerStmt = constructMatcher(
  542       "integerLiteral", constructMatcher("equals", VariantValue(42)))
  547   Matcher<Stmt> CharStmt = constructMatcher(
  548       "characterLiteral", constructMatcher("equals", VariantValue('x')))