diff options
Diffstat (limited to 'clang-query/Query.cpp')
-rw-r--r-- | clang-query/Query.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/clang-query/Query.cpp b/clang-query/Query.cpp index d5d75515..74eb6ea4 100644 --- a/clang-query/Query.cpp +++ b/clang-query/Query.cpp @@ -44,7 +44,14 @@ bool HelpQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { " set output (diag|print|dump) " "Set whether to print bindings as diagnostics,\n" " " - "AST pretty prints or AST dumps.\n\n"; + "AST pretty prints or AST dumps.\n" + " quit " + "Terminates the query session.\n\n"; + return true; +} + +bool QuitQuery::run(llvm::raw_ostream &OS, QuerySession &QS) const { + QS.Terminate = true; return true; } |