clang-tools 20.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::query::InvalidQuery Struct Reference

Any query which resulted in a parse error. The error message is in ErrStr. More...

#include <Query.h>

Inheritance diagram for clang::query::InvalidQuery:
Inheritance graph
[legend]

Public Member Functions

 InvalidQuery (const Twine &ErrStr)
 
bool run (llvm::raw_ostream &OS, QuerySession &QS) const override
 Perform the query on QS and print output to OS.
 
- Public Member Functions inherited from clang::query::Query
 Query (QueryKind Kind)
 
virtual ~Query ()
 
virtual bool run (llvm::raw_ostream &OS, QuerySession &QS) const =0
 Perform the query on QS and print output to OS.
 

Static Public Member Functions

static bool classof (const Query *Q)
 

Public Attributes

std::string ErrStr
 
- Public Attributes inherited from clang::query::Query
StringRef RemainingContent
 
const QueryKind Kind
 

Detailed Description

Any query which resulted in a parse error. The error message is in ErrStr.

Definition at line 55 of file Query.h.

Constructor & Destructor Documentation

◆ InvalidQuery()

clang::query::InvalidQuery::InvalidQuery ( const Twine &  ErrStr)
inline

Definition at line 56 of file Query.h.

Member Function Documentation

◆ classof()

static bool clang::query::InvalidQuery::classof ( const Query Q)
inlinestatic

Definition at line 61 of file Query.h.

References clang::query::Query::Kind, and clang::query::QK_Invalid.

◆ run()

bool clang::query::InvalidQuery::run ( llvm::raw_ostream &  OS,
QuerySession QS 
) const
overridevirtual

Perform the query on QS and print output to OS.

Returns
false if an error occurs, otherwise return true.

Implements clang::query::Query.

Definition at line 27 of file Query.cpp.

References ErrStr, and OS.

Member Data Documentation

◆ ErrStr

std::string clang::query::InvalidQuery::ErrStr

Definition at line 59 of file Query.h.

Referenced by run().


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