clang-tools 19.0.0git
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]

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 ()
 
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)
 

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

Constructor & Destructor Documentation

◆ LetQuery()

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

Definition at line 102 of file Query.h.

Member Function Documentation

◆ classof()

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

Definition at line 109 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 270 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 106 of file Query.h.

Referenced by run().

◆ Value

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

Definition at line 107 of file Query.h.

Referenced by run().


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