#include "QueryParser.h"
#include "Query.h"
#include "QuerySession.h"
#include "clang/ASTMatchers/Dynamic/Parser.h"
#include "clang/Basic/CharInfo.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/ADT/StringSwitch.h"
#include <optional>
#include <set>
usingnamespacellvm;
usingnamespaceclang::ast_matchers::dynamic;
namespace clang {
namespace query {
StringRef QueryParser::lexWord() { … }
template <typename T> struct QueryParser::LexOrCompleteWord { … };
QueryRef QueryParser::parseSetBool(bool QuerySession::*Var) { … }
template <typename QueryType> QueryRef QueryParser::parseSetOutputKind() { … }
QueryRef QueryParser::parseSetTraversalKind(TraversalKind QuerySession::*Var) { … }
QueryRef QueryParser::endQuery(QueryRef Q) { … }
namespace {
enum ParsedQueryKind { … };
enum ParsedQueryVariable { … };
QueryRef makeInvalidQueryFromDiagnostics(const Diagnostics &Diag) { … }
}
QueryRef QueryParser::completeMatcherExpression() { … }
QueryRef QueryParser::doParse() { … }
QueryRef QueryParser::parse(StringRef Line, const QuerySession &QS) { … }
std::vector<LineEditor::Completion>
QueryParser::complete(StringRef Line, size_t Pos, const QuerySession &QS) { … }
}
}