clang-tools  6.0.0svn
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]
Collaboration diagram for clang::query::InvalidQuery:
Collaboration 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. More...
 
- Public Member Functions inherited from clang::query::Query
 Query (QueryKind Kind)
 
virtual ~Query ()
 

Static Public Member Functions

static bool classof (const Query *Q)
 

Public Attributes

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

Detailed Description

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

Definition at line 51 of file Query.h.

Constructor & Destructor Documentation

◆ InvalidQuery()

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

Definition at line 52 of file Query.h.

References clang::query::Query::run().

Member Function Documentation

◆ classof()

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

Definition at line 57 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 25 of file Query.cpp.

Member Data Documentation

◆ ErrStr

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

Definition at line 55 of file Query.h.


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