summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-query/QueryParser.h
Commit message (Collapse)AuthorAgeFilesLines
* [Query] NFC: Port QueryParser to StringRefStephen Kelly2019-01-081-3/+2
| | | | | | | | | | | | | | Summary: There is no reason for it to not be a StringRef. Making it one simplifies existing code, and makes follow-up features easier. Reviewers: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D56415 llvm-svn: 350660
* [clang-query] Add non-exclusive output APIStephen Kelly2018-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | Summary: Add granular options for AST dumping, text printing and diagnostics. This makes it possible to * Have both diag and dump active at once * Extend the output with other queryable content in the future. Reviewers: aaron.ballman, pcc, ioeric, ilya-biryukov, klimek, sammccall Reviewed By: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D52857 llvm-svn: 345522
* Fix for LLVM r326109David Zarzycki2018-02-261-1/+0
| | | | llvm-svn: 326118
* [clang-tools-extra] Format sources with clang-format. NFC.Mandeep Singh Grang2016-11-081-2/+1
| | | | | | | | | | | | | | | | Summary: Ran clang-format on all .c/.cpp/.h files in clang-tools-extra. Excluded the test, unittests, clang-reorder-fields, include-fixer, modularize and pptrace directories. Reviewers: klimek, alexfh Subscribers: nemanjai Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D26329 llvm-svn: 286221
* 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
* 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
* Add new 'let' command to bind arbitrary values into constants.Samuel Benzaquen2014-04-231-5/+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
* [cleanup] Re-sort headers with llvm/utils/sort_includes.py.Chandler Carruth2014-03-041-2/+1
| | | | llvm-svn: 202809
* Documentation comments: fix incorrect usage of \paramDmitri Gribenko2014-03-021-4/+4
| | | | llvm-svn: 202649
* Add completion to the query parser, and hook it up to clang-query.Peter Collingbourne2014-02-011-5/+46
| | | | | | Differential Revision: http://llvm-reviews.chandlerc.com/D2263 llvm-svn: 200604
* Introduce clang-query tool.Peter Collingbourne2013-11-081-0/+27
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