clang-tools  6.0.0svn
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
[legend]
Collaboration diagram for clang::query::SetQuery< T >:
Collaboration graph
[legend]

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
 
Value
 
- Public Attributes inherited from clang::query::Query
const QueryKind Kind
 

Detailed Description

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

Query for "set VAR VALUE".

Definition at line 117 of file Query.h.

Constructor & Destructor Documentation

◆ SetQuery()

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

Definition at line 118 of file Query.h.

Member Function Documentation

◆ classof()

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

Definition at line 125 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
inlineoverridevirtual

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 120 of file Query.h.

Member Data Documentation

◆ Value

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

Definition at line 130 of file Query.h.

◆ Var

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

Definition at line 129 of file Query.h.


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