summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-query
Commit message (Collapse)AuthorAgeFilesLines
* Fix Clang-tidy modernize-deprecated-headers warnings; other minor fixes.Eugene Zelenko2016-03-171-2/+2
| | | | | | Differential revision: http://reviews.llvm.org/D18231 llvm-svn: 263726
* Remove autoconf supportChris Bieneman2016-01-262-55/+0
| | | | | | | | | | | | | | | | Summary: This patch is provided in preparation for removing autoconf on 1/26. The proposal to remove autoconf on 1/26 was discussed on the llvm-dev thread here: http://lists.llvm.org/pipermail/llvm-dev/2016-January/093875.html "Now I am become Death, the destroyer of worlds." -J. Robert Oppenheimer Reviewers: chandlerc, grosbach, bob.wilson, echristo Subscribers: cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D16475 llvm-svn: 258864
* Revert "Apply modernize-use-default to clang-tools-extra."David Blaikie2015-10-201-1/+1
| | | | | | | | | Breaks the build in GCC 4.7.2 (see http://lab.llvm.org:8011/builders/perf-x86_64-penryn-O3 for example) This reverts commit r250824. llvm-svn: 250862
* Apply modernize-use-default to clang-tools-extra.Angel Garcia Gomez2015-10-201-1/+1
| | | | | | | | | | | | Summary: Replace empty bodies of default constructors and destructors with '= default'. Reviewers: klimek Subscribers: alexfh, cfe-commits Differential Revision: http://reviews.llvm.org/D13889 llvm-svn: 250824
* Install clang-query by default.Manuel Klimek2015-09-281-0/+2
| | | | | | | It is already installed by the autotools build, and it is useful for developers who are not working on LLVM/Clang itself. llvm-svn: 248710
* Add the "quit" command as a way to terminate clang-query interactive sessions.Aaron Ballman2015-08-065-2/+26
| | | | llvm-svn: 244206
* Add missing dependency clangFrontend to clangQuery.Adrian Prantl2015-06-201-0/+1
| | | | llvm-svn: 240227
* Use 'override/final' instead of 'virtual' for overridden methodsAlexander Kornienko2015-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | Summary: The patch is generated using clang-tidy misc-use-override check. This command was used: tools/clang/tools/extra/clang-tidy/tool/run-clang-tidy.py \ -checks='-*,misc-use-override' -header-filter='llvm|clang' -j=32 -fix svn diff | clang-format-diff -i Reviewers: dblaikie Reviewed By: dblaikie Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D8927 llvm-svn: 234681
* Add 'let' to the help message.Samuel Benzaquen2015-02-271-4/+8
| | | | | | | | | | | | Summary: Add 'let' to the help message. Reviewers: alexfh Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D7940 llvm-svn: 230768
* Revert "Adapt clang-tools-extra to clang module format changes."Adrian Prantl2015-02-251-3/+2
| | | | | | This reverts commit 230424. llvm-svn: 230456
* Adapt clang-tools-extra to clang module format changes.Adrian Prantl2015-02-251-2/+3
| | | | | | | - add clangCodeGen.a to the tools that need it - tweak pp-trace command line handling to not conflict with clang's. llvm-svn: 230424
* Revert "Adapt Makefile dependencies for the clang module format change in ↵Adrian Prantl2015-02-211-4/+2
| | | | | | r230089." llvm-svn: 230104
* Adapt Makefile dependencies for the clang module format change in r230089.Adrian Prantl2015-02-201-2/+4
| | | | llvm-svn: 230090
* 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