Home | History | Annotate | Download | only in ASTMatchers

Lines Matching defs:AST

1 // unittests/ASTMatchers/ASTMatchersInternalTest.cpp - AST matcher unit tests //
11 #include "clang/AST/PrettyPrinter.h"
142 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;"));
143 ASSERT_TRUE(AST.get());
144 Finder.matchAST(AST->getASTContext());
168 std::unique_ptr<ASTUnit> AST(tooling::buildASTFromCode("int x;"));
169 ASSERT_TRUE(AST.get());
170 Finder.matchAST(AST->getASTContext());
175 std::unique_ptr<ASTUnit> AST =
177 ASSERT_TRUE(AST.get());
179 "x", match(pointerType().bind("x"), AST->getASTContext()));