summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-query/Query.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Remove call to llvm::makeArrayRef. Implicit conversion is sufficient.Craig Topper2014-08-291-1/+1
| | | | llvm-svn: 216711
* Simplify creation of a couple ArrayRefs by using None and makeArrayRef.Craig Topper2014-08-271-2/+2
| | | | llvm-svn: 216529
* Slightly less blindly fixing clang-tools-extra now that I remember that the ↵David Blaikie2014-04-251-4/+1
| | | | | | "check-clang" target doesn't check clang-tools-extra llvm-svn: 207231
* Add new 'let' command to bind arbitrary values into constants.Samuel Benzaquen2014-04-231-1/+10
| | | | | | | | | | | | | | 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
* Revert r194247 conditional on non-MSVC.Peter Collingbourne2013-11-081-0/+5
| | | | | | | These definitions are required by the standard. MSVC rejecting them appears to be a bug. llvm-svn: 194252
* clang-query: Unbreak msvc.NAKAMURA Takumi2013-11-081-3/+0
| | | | llvm-svn: 194247
* Introduce clang-query tool.Peter Collingbourne2013-11-081-0/+131
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