summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-query
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
* [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
* Use CommonOptionsParser in clang-query. This fixes its support of the fixedAlexander Kornienko2014-08-021-26/+11
| | | | | | | | | | | | | | compilation database and makes it behave consistently with other clang tools. Reviewers: klimek, pcc Reviewed By: pcc Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4763 llvm-svn: 214607
* Track clang r213171Alp Toker2014-07-161-1/+1
| | | | | | The clang rewriter is now a core facility. llvm-svn: 213172
* Prune Redundant libdeps in CMake's target_link_libraries and LLVMBuild.txt.NAKAMURA Takumi2014-07-151-1/+0
| | | | | | I checked this with Release+Asserts on x86_64-mingw32. Please restore partially if this were overkill. llvm-svn: 213064
* [CMake] Update libdeps.NAKAMURA Takumi2014-07-141-0/+4
| | | | llvm-svn: 212920
* Simplify code. No functional change.Craig Topper2014-06-101-1/+1
| | | | llvm-svn: 210508
* [C++11] Use 'nullptr'.Craig Topper2014-06-091-2/+2
| | | | llvm-svn: 210447
* Fix clang-query on Windows: flush llvm::outs() after each command.Manuel Klimek2014-05-211-0/+1
| | | | llvm-svn: 209313
* 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
* Blindly try to fix the clang-tools-extra build since my local build doesn't ↵David Blaikie2014-04-252-5/+3
| | | | | | appear to be picking it up llvm-svn: 207230
* 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-236-38/+125
| | | | | | | | | | | | | | 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
* [C++11] Replace OwningPtr with std::unique_ptr.Ahmed Charles2014-03-091-3/+2
| | | | | | | | This removes all references to OwningPtr, which should be fairly undisruptive to out-of-tree projects since they are unlikely to use clang-tools-extra as a library instead of a set of tools. llvm-svn: 203382
* [cleanup] Re-sort headers with llvm/utils/sort_includes.py.Chandler Carruth2014-03-042-3/+1
| | | | llvm-svn: 202809
* Documentation comments: fix incorrect usage of \paramDmitri Gribenko2014-03-021-4/+4
| | | | llvm-svn: 202649
* [C++11] Replace LLVM_OVERRIDE with 'override'Craig Topper2014-03-021-5/+5
| | | | llvm-svn: 202632
* [CMake] Use LINK_LIBS instead of target_link_libraries().NAKAMURA Takumi2014-02-261-2/+2
| | | | llvm-svn: 202238
* Add a makefile for clang-query. Patch by Alex Horn!Peter Collingbourne2014-02-183-10/+48
| | | | | | | While at it, have cmake build and test the tool if libedit is not installed, as this dependency is now optional. llvm-svn: 201599
* Add completion to the query parser, and hook it up to clang-query.Peter Collingbourne2014-02-013-46/+160
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D2263 llvm-svn: 200604
* Switch clang-query to use the lineeditor library.Peter Collingbourne2014-02-012-29/+6
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D2262 llvm-svn: 200603
* Run llvm/utils/sort_includes.py over the Clang tools code. This doesn'tChandler Carruth2014-01-074-8/+6
| | | | | | | | | | 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
* [CMake] clang-tools-extra: Update dependencies.NAKAMURA Takumi2013-12-101-0/+4
| | | | llvm-svn: 196860
* 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
* Silence GCC warning.Peter Collingbourne2013-11-081-0/+2
| | | | llvm-svn: 194230
* Introduce clang-query tool.Peter Collingbourne2013-11-089-0/+674
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