summaryrefslogtreecommitdiffstats
path: root/clang-query/Query.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-query/Query.h')
-rw-r--r--clang-query/Query.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang-query/Query.h b/clang-query/Query.h
index f4505701..109336a9 100644
--- a/clang-query/Query.h
+++ b/clang-query/Query.h
@@ -32,6 +32,7 @@ enum QueryKind {
QK_Match,
QK_SetBool,
QK_SetOutputKind,
+ QK_Quit
};
class QuerySession;
@@ -76,6 +77,14 @@ struct HelpQuery : Query {
static bool classof(const Query *Q) { return Q->Kind == QK_Help; }
};
+/// Query for "quit".
+struct QuitQuery : Query {
+ QuitQuery() : Query(QK_Quit) {}
+ bool run(llvm::raw_ostream &OS, QuerySession &QS) const override;
+
+ static bool classof(const Query *Q) { return Q->Kind == QK_Quit; }
+};
+
/// Query for "match MATCHER".
struct MatchQuery : Query {
MatchQuery(const ast_matchers::dynamic::DynTypedMatcher &Matcher)