ΒΆclang::SourceLocation getRuleMatchLoc(
    const ast_matchers::MatchFinder::MatchResult&
        Result)

Description

Gets the beginning location of the source matched by a rewrite rule. If the match occurs within a macro expansion, returns the beginning of the expansion point. `Result` must come from the matching of a rewrite rule.

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

Parameters

const ast_matchers::MatchFinder::MatchResult& Result