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

#include <Query.h>

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

Public Member Functions

 FileQuery (StringRef File, StringRef Prefix=StringRef())
 
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)
 

Additional Inherited Members

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

Detailed Description

Definition at line 191 of file Query.h.

Constructor & Destructor Documentation

◆ FileQuery()

clang::query::FileQuery::FileQuery ( StringRef  File,
StringRef  Prefix = StringRef() 
)
inline

Definition at line 192 of file Query.h.

Member Function Documentation

◆ classof()

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

Definition at line 199 of file Query.h.

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

◆ run()

bool clang::query::FileQuery::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 189 of file Query.cpp.

References clang::query::QueryParser::parse().


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