clang 20.0.0git
|
A refactoring option is an interface that describes a value that has an impact on the outcome of a refactoring. More...
#include "clang/Tooling/Refactoring/RefactoringOption.h"
Public Member Functions | |
virtual | ~RefactoringOption () |
virtual StringRef | getName () const =0 |
Returns the name of the refactoring option. | |
virtual StringRef | getDescription () const =0 |
virtual bool | isRequired () const =0 |
True when this option must be specified before invoking the refactoring action. | |
virtual void | passToVisitor (RefactoringOptionVisitor &Visitor)=0 |
Invokes the visit method in the option consumer that's appropriate for the option's value type. | |
A refactoring option is an interface that describes a value that has an impact on the outcome of a refactoring.
Refactoring options can be specified using command-line arguments when the clang-refactor tool is used.
Definition at line 26 of file RefactoringOption.h.
|
inlinevirtual |
Definition at line 28 of file RefactoringOption.h.
|
pure virtual |
|
pure virtual |
Returns the name of the refactoring option.
Each refactoring option must have a unique name.
|
pure virtual |
True when this option must be specified before invoking the refactoring action.
Implemented in clang::tooling::RequiredRefactoringOption< T, typename >, and clang::tooling::OptionalRefactoringOption< T, typename >.
|
pure virtual |
Invokes the visit
method in the option consumer that's appropriate for the option's value type.
For example, if the option stores a string value, this method will invoke the visit
method with a reference to an std::string value.
Implemented in clang::tooling::OptionalRefactoringOption< T, typename >.