summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-query/QueryParser.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Add the "quit" command as a way to terminate clang-query interactive sessions.Aaron Ballman2015-08-061-0/+5
| | | | llvm-svn: 244206
* [clang-query] Use the new API for named values from the Parser.Samuel Benzaquen2014-08-121-18/+5
| | | | | | | | | | | | Summary: This finishes the support for autocomplete for user defined values.. Reviewers: pcc Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4851 llvm-svn: 215474
* QueryParser::doParse(): Fix msc17 build. Don't use initializer list.NAKAMURA Takumi2014-04-231-1/+1
| | | | llvm-svn: 206998
* Add new 'let' command to bind arbitrary values into constants.Samuel Benzaquen2014-04-231-27/+83
| | | | | | | | | | | | | | 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
* [cleanup] Re-sort headers with llvm/utils/sort_includes.py.Chandler Carruth2014-03-041-1/+0
| | | | llvm-svn: 202809
* Add completion to the query parser, and hook it up to clang-query.Peter Collingbourne2014-02-011-38/+110
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D2263 llvm-svn: 200604
* Run llvm/utils/sort_includes.py over the Clang tools code. This doesn'tChandler Carruth2014-01-071-2/+2
| | | | | | | | | | 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
* Silence GCC warning.Peter Collingbourne2013-11-081-0/+2
| | | | llvm-svn: 194230
* Introduce clang-query tool.Peter Collingbourne2013-11-081-0/+165
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