summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/test/clang-query/errors.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a makefile for clang-query. Patch by Alex Horn!Peter Collingbourne2014-02-181-1/+0
| | | | | | | While at it, have cmake build and test the tool if libedit is not installed, as this dependency is now optional. llvm-svn: 201599
* Introduce clang-query tool.Peter Collingbourne2013-11-081-0/+11
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
OpenPOWER on IntegriCloud