clang-tools 19.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
clang::query::MatchQuery Struct Reference

Query for "match MATCHER". More...

#include <Query.h>

Inheritance diagram for clang::query::MatchQuery:
Inheritance graph
[legend]

Public Member Functions

 MatchQuery (StringRef Source, const ast_matchers::dynamic::DynTypedMatcher &Matcher)
 
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

ast_matchers::dynamic::DynTypedMatcher Matcher
 
StringRef Source
 
- Public Attributes inherited from clang::query::Query
StringRef RemainingContent
 
const QueryKind Kind
 

Detailed Description

Query for "match MATCHER".

Definition at line 88 of file Query.h.

Constructor & Destructor Documentation

◆ MatchQuery()

clang::query::MatchQuery::MatchQuery ( StringRef  Source,
const ast_matchers::dynamic::DynTypedMatcher &  Matcher 
)
inline

Definition at line 89 of file Query.h.

Member Function Documentation

◆ classof()

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

Definition at line 98 of file Query.h.

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

◆ run()

bool clang::query::MatchQuery::run ( llvm::raw_ostream &  OS,
QuerySession QS 
) const
overridevirtual

Member Data Documentation

◆ Matcher

ast_matchers::dynamic::DynTypedMatcher clang::query::MatchQuery::Matcher

Definition at line 94 of file Query.h.

Referenced by run().

◆ Source

StringRef clang::query::MatchQuery::Source

Definition at line 96 of file Query.h.

Referenced by run().


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