clang-tools  14.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::query::SetQuery< T > Struct Template Reference

Query for "set VAR VALUE". More...

#include <Query.h>

Inheritance diagram for clang::query::SetQuery< T >:
Inheritance graph
Collaboration diagram for clang::query::SetQuery< T >:
Collaboration graph

Public Member Functions

 SetQuery (T QuerySession::*Var, T Value)
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

T QuerySession::* Var
- Public Attributes inherited from clang::query::Query
StringRef RemainingContent
const QueryKind Kind

Detailed Description

template<typename T>
struct clang::query::SetQuery< T >

Query for "set VAR VALUE".

Definition at line 128 of file Query.h.

Constructor & Destructor Documentation

◆ SetQuery()

template<typename T >
clang::query::SetQuery< T >::SetQuery ( T QuerySession::*  Var,

Definition at line 129 of file Query.h.

Member Function Documentation

◆ classof()

template<typename T >
static bool clang::query::SetQuery< T >::classof ( const Query Q)

Definition at line 136 of file Query.h.

References clang::query::Query::Kind.

◆ run()

template<typename T >
bool clang::query::SetQuery< T >::run ( llvm::raw_ostream &  OS,
QuerySession QS 
) const

Perform the query on QS and print output to OS.

false if an error occurs, otherwise return true.

Implements clang::query::Query.

Definition at line 131 of file Query.h.

References clang::query::SetQuery< T >::Value, and clang::query::SetQuery< T >::Var.

Member Data Documentation

◆ Value

template<typename T >
T clang::query::SetQuery< T >::Value

Definition at line 141 of file Query.h.

Referenced by clang::query::SetQuery< T >::run().

◆ Var

template<typename T >
T QuerySession::* clang::query::SetQuery< T >::Var

Definition at line 140 of file Query.h.

Referenced by clang::query::SetQuery< T >::run().

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