class ReplaceStmtWithStmt

Declaration

class ReplaceStmtWithStmt : public RefactoringCallback { /* full declaration omitted */ };

Description

Replace the text of the statement bound to \c FromId with the text of the statement bound to \c ToId.

Declared at: clang/include/clang/Tooling/RefactoringCallbacks.h:113

Inherits from: RefactoringCallback

Member Variables

private std::string FromId
private std::string ToId

Inherited from RefactoringCallback:

protected Replace

Method Overview

  • public ReplaceStmtWithStmt(llvm::StringRef FromId, llvm::StringRef ToId)
  • public void run(const ast_matchers::MatchFinder::MatchResult & Result)

Inherited from RefactoringCallback:

Inherited from MatchFinder::MatchCallback:

Methods

ReplaceStmtWithStmt(llvm::StringRef FromId,
                    llvm::StringRef ToId)

Declared at: clang/include/clang/Tooling/RefactoringCallbacks.h:115

Parameters

llvm::StringRef FromId
llvm::StringRef ToId

void run(
    const ast_matchers::MatchFinder::MatchResult&
        Result)

Description

Called on every match by the \c MatchFinder.

Declared at: clang/include/clang/Tooling/RefactoringCallbacks.h:116

Parameters

const ast_matchers::MatchFinder::MatchResult& Result