hanchenye-llvm-project/clang-tools-extra/unittests
Peter Collingbourne 8b1265b353 Introduce clang-query tool.
This tool is for interactive exploration of the Clang AST using AST matchers.
It currently allows the user to enter a matcher at an interactive prompt
and view the resulting bindings as diagnostics, AST pretty prints or AST
dumps. Example session:

$ cat foo.c
void foo(void) {}
$ clang-query foo.c --
clang-query> match functionDecl()

Match #1:

foo.c:1:1: note: "root" binds here
void foo(void) {}
^~~~~~~~~~~~~~~~~
1 match.

Differential Revision: http://llvm-reviews.chandlerc.com/D2098

llvm-svn: 194227
2013-11-08 00:08:23 +00:00
..
clang-apply-replacements Fix build by adding dep on TransformUtils 2013-09-30 14:29:28 +00:00
clang-modernize clang-modernize: Apply replacements using clang-apply-replacements 2013-10-05 12:15:58 +00:00
clang-query Introduce clang-query tool. 2013-11-08 00:08:23 +00:00
clang-tidy Add dependencies on TransformUtils library in preparation for re-applying r188666 2013-08-19 13:58:56 +00:00
include/common clang-apply-replacements: Add code formatting functionality 2013-09-30 13:59:21 +00:00
CMakeLists.txt Introduce clang-query tool. 2013-11-08 00:08:23 +00:00
Makefile Introduce clang-query tool. 2013-11-08 00:08:23 +00:00