summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-query/QueryEngineTest.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix file headers. NFCFangrui Song2019-03-011-1/+1
| | | | llvm-svn: 355188
* Update the file headers across all of the LLVM projects in the monorepoChandler Carruth2019-01-191-4/+3
| | | | | | | | | | | | | | | | | to reflect the new license. We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach. Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository. llvm-svn: 351636
* [clang-query] Add non-exclusive output APIStephen Kelly2018-10-291-0/+13
| | | | | | | | | | | | | | | | | | | | 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
* [clang-query] Refactor Output settings to booleansStephen Kelly2018-10-241-2/+2
| | | | | | | | | | | | Summary: This will make it possible to add non-exclusive mode output. Reviewers: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D53501 llvm-svn: 345194
* [clang-query] Add 'detailed-ast' output as an alias for 'dump'Stephen Kelly2018-10-241-1/+2
| | | | | | | | | | | | Summary: Future development can then dump other content than AST. Reviewers: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D53500 llvm-svn: 345193
* [clang-query] Add option to print matcher expressionStephen Kelly2018-10-201-6/+8
| | | | | | | | | | | | | | Summary: This is useful if using clang-query -f with a file containing multiple matchers. Reviewers: aaron.ballman Subscribers: cfe-commits Differential Revision: https://reviews.llvm.org/D52859 llvm-svn: 344840
* Fix build failure caused by D52157Shuai Wang2018-09-171-1/+1
| | | | llvm-svn: 342408
* Remove unnecessary explicit unique_ptr ctors now that buildASTFromCode ↵David Blaikie2014-04-251-4/+4
| | | | | | returns a unique_ptr instead of a raw pointer. llvm-svn: 207238
* Slightly less blindly fixing clang-tools-extra now that I remember that the ↵David Blaikie2014-04-251-13/+12
| | | | | | "check-clang" target doesn't check clang-tools-extra llvm-svn: 207231
* QueryEngineTest.cpp: Appease g++47.NAKAMURA Takumi2014-04-241-1/+1
| | | | llvm-svn: 207097
* ClangQueryTests: Fix msc17 build. Non-static member initializers are ↵NAKAMURA Takumi2014-04-241-9/+18
| | | | | | unavailable. llvm-svn: 207096
* Add new 'let' command to bind arbitrary values into constants.Samuel Benzaquen2014-04-231-10/+38
| | | | | | | | | | | | | | 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-2/+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
* Introduce clang-query tool.Peter Collingbourne2013-11-081-0/+110
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