clang 20.0.0git
|
A refactoring option that stores a value of type T
.
More...
#include "clang/Tooling/Refactoring/RefactoringOptions.h"
Public Types | |
using | ValueType = std::optional< T > |
Public Member Functions | |
void | passToVisitor (RefactoringOptionVisitor &Visitor) final |
Invokes the visit method in the option consumer that's appropriate for the option's value type. | |
bool | isRequired () const override |
True when this option must be specified before invoking the refactoring action. | |
const ValueType & | getValue () const |
Public Member Functions inherited from clang::tooling::RefactoringOption | |
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. | |
Protected Attributes | |
std::optional< T > | Value |
A refactoring option that stores a value of type T
.
Definition at line 26 of file RefactoringOptions.h.
using clang::tooling::OptionalRefactoringOption< T, typename >::ValueType = std::optional<T> |
Definition at line 34 of file RefactoringOptions.h.
|
inline |
Definition at line 36 of file RefactoringOptions.h.
References clang::tooling::OptionalRefactoringOption< T, typename >::Value.
|
inlineoverridevirtual |
True when this option must be specified before invoking the refactoring action.
Implements clang::tooling::RefactoringOption.
Reimplemented in clang::tooling::RequiredRefactoringOption< T, typename >.
Definition at line 32 of file RefactoringOptions.h.
|
inlinefinalvirtual |
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.
Implements clang::tooling::RefactoringOption.
Definition at line 28 of file RefactoringOptions.h.
|
protected |
Definition at line 39 of file RefactoringOptions.h.
Referenced by clang::tooling::OptionalRefactoringOption< T, typename >::getValue().