summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clang-query/QuerySession.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2018-10-24 20:33:55 +0000
committerStephen Kelly <steveire@gmail.com>2018-10-24 20:33:55 +0000
commit70d771714ec6210df887139b2c1467c5acd79da1 (patch)
tree3b5fc2577ac3766bf691239ea725087cc4cb0eff /clang-tools-extra/clang-query/QuerySession.h
parent51707b21a0d7fe140fd0cf20f001192cecd301aa (diff)
downloadbcm5719-llvm-70d771714ec6210df887139b2c1467c5acd79da1.tar.gz
bcm5719-llvm-70d771714ec6210df887139b2c1467c5acd79da1.zip
[clang-query] Refactor Output settings to booleans
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
Diffstat (limited to 'clang-tools-extra/clang-query/QuerySession.h')
-rw-r--r--clang-tools-extra/clang-query/QuerySession.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-query/QuerySession.h b/clang-tools-extra/clang-query/QuerySession.h
index a211aa0f78c..62ecb545073 100644
--- a/clang-tools-extra/clang-query/QuerySession.h
+++ b/clang-tools-extra/clang-query/QuerySession.h
@@ -25,11 +25,16 @@ namespace query {
class QuerySession {
public:
QuerySession(llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs)
- : ASTs(ASTs), OutKind(OK_Diag), BindRoot(true), PrintMatcher(false),
+ : ASTs(ASTs), PrintOutput(false), DiagOutput(true),
+ DetailedASTOutput(false), BindRoot(true), PrintMatcher(false),
Terminate(false) {}
llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs;
- OutputKind OutKind;
+
+ bool PrintOutput;
+ bool DiagOutput;
+ bool DetailedASTOutput;
+
bool BindRoot;
bool PrintMatcher;
bool Terminate;
OpenPOWER on IntegriCloud