10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_QUERY_QUERY_PARSER_H 11 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_QUERY_QUERY_PARSER_H 15 #include "llvm/LineEditor/LineEditor.h" 35 static std::vector<llvm::LineEditor::Completion>
40 : 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;
69 #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++ -*-===//