ΒΆstd::vector<
    ast_matchers::internal::DynTypedMatcher>
buildMatchers(
    const clang::transformer::RewriteRuleBase&
        Rule)

Description

Builds a set of matchers that cover the rule. One matcher is built for each distinct node matcher base kind: Stmt, Decl, etc. Node-matchers for `QualType` and `Type` are not permitted, since such nodes carry no source location information and are therefore not relevant for rewriting. If any such matchers are included, will return an empty vector.

Declared at: clang/include/clang/Tooling/Transformer/RewriteRule.h:519

Parameters

const clang::transformer::RewriteRuleBase& Rule