clang-tools  6.0.0svn
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::query::LetQuery Struct Reference

#include <Query.h>

Inheritance diagram for clang::query::LetQuery:
Inheritance graph
[legend]
Collaboration diagram for clang::query::LetQuery:
Collaboration graph
[legend]

Public Member Functions

 LetQuery (StringRef Name, const ast_matchers::dynamic::VariantValue &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

std::string Name
 
ast_matchers::dynamic::VariantValue Value
 
- Public Attributes inherited from clang::query::Query
const QueryKind Kind
 

Detailed Description

Definition at line 95 of file Query.h.

Constructor & Destructor Documentation

◆ LetQuery()

clang::query::LetQuery::LetQuery ( StringRef  Name,
const ast_matchers::dynamic::VariantValue &  Value 
)
inline

Definition at line 96 of file Query.h.

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

Member Function Documentation

◆ classof()

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

Definition at line 103 of file Query.h.

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

◆ run()

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

References Name, and clang::query::QuerySession::NamedValues.

Member Data Documentation

◆ Name

std::string clang::query::LetQuery::Name

Definition at line 100 of file Query.h.

◆ Value

ast_matchers::dynamic::VariantValue clang::query::LetQuery::Value

Definition at line 101 of file Query.h.


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