Home | History | Annotate | Download | only in ASTMatchers

Lines Matching refs:stmt

490   StatementMatcher MixedTypes = stmt(anyOf(ifStmt(), binaryOperator()));
806 stmt(hasDescendant(builtinType()))));
809 stmt(hasDescendant(loc(builtinType())))));
811 stmt(hasDescendant(qualType(builtinType())))));
814 stmt(hasDescendant(isInteger()))));
2784 AST_POLYMORPHIC_SUPPORTED_TYPES(Decl, Stmt),
3383 EXPECT_TRUE(notMatches("class X {};", stmt()));
3387 EXPECT_TRUE(matches("void x() {}", stmt()));
3740 ifStmt(stmt().bind("x"), hasAncestor(recordDecl(hasName("::A")))),
3741 new VerifyIdIsBoundTo<Stmt>("x", 2)));
4129 const Stmt *Node = Nodes->getNodeAs<Stmt>("node");
4142 stmt().bind("node"), new HasDuplicateParents()));
4698 new VerifyMatchOnNode<clang::Stmt>(
4699 "if", stmt(hasDescendant(forStmt().bind("for"))), "for")));
4702 new VerifyMatchOnNode<clang::Stmt>(
4703 "if", stmt(hasDescendant(declStmt().bind("decl"))), "decl")));
4727 bool verify(const BoundNodes &Nodes, ASTContext &Context, const Stmt *Node) {
4732 "", match(stmt(hasParent(
4733 stmt(has(stmt(equalsNode(TypedNode)))).bind(""))),
4859 TEST(EqualsBoundNodeMatcher, Stmt) {
4862 stmt(allOf(ifStmt().bind("if"),
4863 hasParent(stmt(has(stmt(equalsBoundNode("if")))))))));
4867 stmt(allOf(ifStmt().bind("if"), has(stmt(equalsBoundNode("if")))))));
4939 unless(hasAncestor(stmt(hasDescendant(cxxMemberCallExpr(
4955 unless(hasAncestor(stmt(hasDescendant(cxxMemberCallExpr(