clang-tools  6.0.0svn
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
Collaboration diagram for clang::query::MatchQuery:
Collaboration graph

Public Member Functions

 MatchQuery (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. 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

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

Detailed Description

Query for "match MATCHER".

Definition at line 85 of file Query.h.

Constructor & Destructor Documentation

◆ MatchQuery()

clang::query::MatchQuery::MatchQuery ( const ast_matchers::dynamic::DynTypedMatcher &  Matcher)

Definition at line 86 of file Query.h.

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

Member Function Documentation

◆ classof()

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

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

Perform the query on QS and print output to OS.

false if an error occurs, otherwise return true.

Implements clang::query::Query.

Definition at line 70 of file Query.cpp.

References clang::query::QuerySession::ASTs.

Member Data Documentation

◆ Matcher

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

Definition at line 90 of file Query.h.

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