clang API Documentation

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

Replace an if-statement bound to Id with the outdented text of its body, choosing the consequent or the alternative based on whether PickTrueBranch is true. More...

#include <RefactoringCallbacks.h>

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

List of all members.

Public Member Functions

 ReplaceIfStmtWithItsBody (StringRef Id, bool PickTrueBranch)
void run (const ast_matchers::MatchFinder::MatchResult &Result) override
 Called on every match by the MatchFinder.

Detailed Description

Replace an if-statement bound to Id with the outdented text of its body, choosing the consequent or the alternative based on whether PickTrueBranch is true.

Definition at line 77 of file RefactoringCallbacks.h.


Constructor & Destructor Documentation

Definition at line 62 of file RefactoringCallbacks.cpp.


Member Function Documentation


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