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

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

Constructor & Destructor Documentation

◆ MatchQuery()

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

Definition at line 90 of file Query.h.

Member Function Documentation

◆ classof()

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

Definition at line 99 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

Member Data Documentation

◆ Matcher

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

Definition at line 95 of file Query.h.

Referenced by run().

◆ Source

StringRef clang::query::MatchQuery::Source

Definition at line 97 of file Query.h.

Referenced by run().

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