clang-tools 20.0.0git
|
Query for "match MATCHER". More...
#include <Query.h>
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 |
|
inline |
|
inlinestatic |
Definition at line 99 of file Query.h.
References clang::query::Query::Kind, and clang::query::QK_Match.
|
overridevirtual |
Perform the query on QS
and print output to OS
.
Implements clang::query::Query.
Definition at line 93 of file Query.cpp.
References clang::query::QuerySession::ASTs, clang::query::QuerySession::BindRoot, clang::query::QuerySession::DetailedASTOutput, clang::query::QuerySession::DiagOutput, Line, Lines, M, Matcher, OS, clang::query::QuerySession::PrintMatcher, clang::query::QuerySession::PrintOutput, Source, and clang::query::QuerySession::TK.
ast_matchers::dynamic::DynTypedMatcher clang::query::MatchQuery::Matcher |
StringRef clang::query::MatchQuery::Source |