9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_QUERY_QUERY_PARSER_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANG_QUERY_QUERY_PARSER_H
14#include "llvm/LineEditor/LineEditor.h"
34 static std::vector<llvm::LineEditor::Completion>
39 :
Line(
Line), CompletionPos(
nullptr), QS(QS) {}
47 template <
typename QueryType>
QueryRef parseSetOutputKind();
48 QueryRef completeMatcherExpression();
60 const char *CompletionPos;
61 std::vector<llvm::LineEditor::Completion> Completions;
static QueryRef parse(StringRef Line, const QuerySession &QS)
Parse Line as a query.
static std::vector< llvm::LineEditor::Completion > complete(StringRef Line, size_t Pos, const QuerySession &QS)
Compute a list of completions for Line assuming a cursor at.
Represents the state for a particular clang-query session.
llvm::IntrusiveRefCntPtr< Query > QueryRef
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//