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) {}
46 template <
typename QueryType>
QueryRef parseSetOutputKind();
47 QueryRef completeMatcherExpression();
59 const char *CompletionPos;
60 std::vector<llvm::LineEditor::Completion> Completions;
68 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_QUERY_QUERY_PARSER_H static QueryRef parse(StringRef Line, const QuerySession &QS)
Parse Line as a query.
Represents the state for a particular clang-query session.
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.
llvm::IntrusiveRefCntPtr< Query > QueryRef
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//