clang-tools 22.0.0git
clang::query::LetQuery Struct Reference

#include <Query.h>

Inheritance diagram for clang::query::LetQuery:
[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.
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
StringRef RemainingContent
const QueryKind Kind

Detailed Description

Definition at line 102 of file Query.h.

Constructor & Destructor Documentation

◆ LetQuery()

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

Definition at line 103 of file Query.h.

References Name, clang::query::QK_Let, clang::query::Query::Query(), and Value.

Member Function Documentation

◆ classof()

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

◆ 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 205 of file Query.cpp.

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

Member Data Documentation

◆ Name

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

Definition at line 107 of file Query.h.

Referenced by LetQuery(), and run().

◆ Value

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

Definition at line 108 of file Query.h.

Referenced by LetQuery(), and run().


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