clang API Documentation

Public Member Functions
clang::tooling::ReplaceStmtWithText Class Reference

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

#include <RefactoringCallbacks.h>

Inheritance diagram for clang::tooling::ReplaceStmtWithText:
Inheritance graph
[legend]
Collaboration diagram for clang::tooling::ReplaceStmtWithText:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ReplaceStmtWithText (StringRef FromId, StringRef ToText)
void run (const ast_matchers::MatchFinder::MatchResult &Result) override
 Called on every match by the MatchFinder.

Detailed Description

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

Definition at line 52 of file RefactoringCallbacks.h.


Constructor & Destructor Documentation

clang::tooling::ReplaceStmtWithText::ReplaceStmtWithText ( StringRef  FromId,
StringRef  ToText 
)

Definition at line 37 of file RefactoringCallbacks.cpp.


Member Function Documentation


The documentation for this class was generated from the following files: