From a49fe5d878fc8b9246e8ab53862077c21c22cc8c Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 29 Oct 2018 18:59:56 +0000 Subject: [clang-query] Add non-exclusive output API 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-tools-extra/clang-query/Query.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang-tools-extra/clang-query/Query.cpp') diff --git a/clang-tools-extra/clang-query/Query.cpp b/clang-tools-extra/clang-query/Query.cpp index 48e20047701..ffa3b4566e8 100644 --- a/clang-tools-extra/clang-query/Query.cpp +++ b/clang-tools-extra/clang-query/Query.cpp @@ -45,6 +45,10 @@ bool HelpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { "Set whether to print the current matcher,\n" " set output " "Set whether to output only content.\n" + " enable output " + "Enable content non-exclusively.\n" + " disable output " + "Disable content non-exclusively.\n" " quit, q " "Terminates the query session.\n\n" "Several commands accept a parameter. The available features " -- cgit v1.2.3