clang 20.0.0git
|
A required refactoring option that stores a value of type T
.
More...
#include "clang/Tooling/Refactoring/RefactoringOptions.h"
Public Types | |
using | ValueType = T |
Public Types inherited from clang::tooling::OptionalRefactoringOption< T, typename > | |
using | ValueType = std::optional< T > |
Public Member Functions | |
const ValueType & | getValue () const |
bool | isRequired () const final |
True when this option must be specified before invoking the refactoring action. | |
Public Member Functions inherited from clang::tooling::OptionalRefactoringOption< T, typename > | |
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. | |
Additional Inherited Members | |
Protected Attributes inherited from clang::tooling::OptionalRefactoringOption< T, typename > | |
std::optional< T > | Value |
A required refactoring option that stores a value of type T
.
Definition at line 45 of file RefactoringOptions.h.
using clang::tooling::RequiredRefactoringOption< T, typename >::ValueType = T |
Definition at line 47 of file RefactoringOptions.h.
|
inline |
Definition at line 49 of file RefactoringOptions.h.
|
inlinefinalvirtual |
True when this option must be specified before invoking the refactoring action.
Reimplemented from clang::tooling::OptionalRefactoringOption< T, typename >.
Definition at line 52 of file RefactoringOptions.h.