clang-tools 19.0.0git
Classes | Static Public Member Functions | List of all members
clang::query::QueryParser Class Reference

#include <QueryParser.h>


struct  LexOrCompleteWord

Static Public Member Functions

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.

Detailed Description

Definition at line 22 of file QueryParser.h.

Member Function Documentation

◆ complete()

std::vector< LineEditor::Completion > clang::query::QueryParser::complete ( StringRef  Line,
size_t  Pos,
const QuerySession QS 

Compute a list of completions for Line assuming a cursor at.

Poscharacters past the start of Line, ordered from most likely to least likely.
A vector of completions for Line.

Definition at line 366 of file QueryParser.cpp.

References Line, and Pos.

Referenced by main().

◆ parse()

QueryRef clang::query::QueryParser::parse ( StringRef  Line,
const QuerySession QS 

Parse Line as a query.

A QueryRef representing the query, which may be an InvalidQuery.

Definition at line 361 of file QueryParser.cpp.

References Line.

Referenced by main(), and runCommandsInFile().

The documentation for this class was generated from the following files: