WaSH Docs
Classes | Functions
refactor.hpp File Reference

Idea is to write out the results of the refactoring using the classes defined here. More...

#include "arguments.hpp"
#include "common.hpp"

Go to the source code of this file.

Classes

class  ws2st::refactor::WashMatchCallback
 A specialised refactoring callback type for Wash using custom function pointers instead of subclassing tooling::RefactoringCallback and implementing ...::run a million times. More...
 
class  ws2st::refactor::WashRefactoringAction
 Developer defined registration of a refactoring action - a (<T>Matcher, CallbackFn) pair. More...
 
class  ws2st::refactor::WashComputationAction
 Define a function to be run at the end of the refactor pass. Computation Actions will be run in the order they're defined, but will be run after all refactoring actions in the pass have completed. More...
 
class  ws2st::refactor::RefactorPass
 A pass of a refactoring tool over the source files running a series of actions defined. More...
 
class  ws2st::refactor::RefactoringToolConfiguration
 We configure the whole tool by a series of refactoring passes. More...
 

Functions

void ws2st::refactor::runRefactoring (const WashOptions &opts)
 Runs the wash refactoring application. More...
 
const RefactoringToolConfiguration & ws2st::refactor::config::getConfigurationForImplementation (Implementations impl)
 Returns the set of passes specified by the implementation given. More...
 

Detailed Description

Idea is to write out the results of the refactoring using the classes defined here.

Author
james
Version
0.1
Date
2024-01-22

Function Documentation

◆ getConfigurationForImplementation()

const RefactoringToolConfiguration & ws2st::refactor::config::getConfigurationForImplementation ( Implementations  impl)

Returns the set of passes specified by the implementation given.

Parameters
implImplementation to use passes of
Returns
a Configuration, which is a collection of passes

◆ runRefactoring()

void ws2st::refactor::runRefactoring ( const WashOptions opts)

Runs the wash refactoring application.

Parameters
optsApplication options