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 : Begin(Line.begin()), End(Line.end()), CompletionPos(
nullptr), QS(QS) {}
49 QueryRef completeMatcherExpression();
62 const char *CompletionPos;
63 std::vector<llvm::LineEditor::Completion> Completions;
71 #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