class ReplaceStmtWithText

Declaration

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

Description

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

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

Inherits from: RefactoringCallback

Member Variables

private std::string FromId
private std::string ToText

Inherited from RefactoringCallback:

protected Replace

Method Overview

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

Inherited from RefactoringCallback:

Inherited from MatchFinder::MatchCallback:

Methods

ReplaceStmtWithText(llvm::StringRef FromId,
                    llvm::StringRef ToText)

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

Parameters

llvm::StringRef FromId
llvm::StringRef ToText

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:81

Parameters

const ast_matchers::MatchFinder::MatchResult& Result