summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-query/QuerySession.h
Commit message (Collapse)AuthorAgeFilesLines
* Add the "quit" command as a way to terminate clang-query interactive sessions.Aaron Ballman2015-08-061-1/+2
| | | | llvm-svn: 244206
* Blindly try to fix the clang-tools-extra build since my local build doesn't ↵David Blaikie2014-04-251-2/+2
| | | | | | appear to be picking it up llvm-svn: 207230
* Add new 'let' command to bind arbitrary values into constants.Samuel Benzaquen2014-04-231-0/+3
| | | | | | | | | | | | | | Summary: Add new 'let' command to bind arbitrary values into constants. These constants can then be used in the matcher expressions. Reviewers: pcc CC: cfe-commits Differential Revision: http://reviews.llvm.org/D3383 llvm-svn: 206984
* Run llvm/utils/sort_includes.py over the Clang tools code. This doesn'tChandler Carruth2014-01-071-1/+1
| | | | | | | | | | always produce as pretty of results as it does in LLVM and Clang, but I don't mind and the value of having a single canonical ordering is very high IMO. Let me know if you spot really serious problems here. llvm-svn: 198703
* Introduce clang-query tool.Peter Collingbourne2013-11-081-0/+36
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