clang 20.0.0git
|
A requirement that evaluates to the value of the given OptionType
when the OptionType
is a required option.
More...
#include "clang/Tooling/Refactoring/RefactoringActionRuleRequirements.h"
Public Member Functions | |
OptionRequirement () | |
ArrayRef< std::shared_ptr< RefactoringOption > > | getRefactoringOptions () const final |
Returns the set of refactoring options that are used when evaluating this requirement. | |
Expected< typename OptionType::ValueType > | evaluate (RefactoringRuleContext &) const |
Public Member Functions inherited from clang::tooling::RefactoringOptionsRequirement | |
virtual | ~RefactoringOptionsRequirement () |
virtual ArrayRef< std::shared_ptr< RefactoringOption > > | getRefactoringOptions () const =0 |
Returns the set of refactoring options that are used when evaluating this requirement. | |
A requirement that evaluates to the value of the given OptionType
when the OptionType
is a required option.
When the OptionType
is an optional option, the requirement will evaluate to None
if the option is not specified or to an appropriate value otherwise.
Definition at line 96 of file RefactoringActionRuleRequirements.h.
|
inline |
Definition at line 98 of file RefactoringActionRuleRequirements.h.
|
inline |
Definition at line 106 of file RefactoringActionRuleRequirements.h.
|
inlinefinalvirtual |
Returns the set of refactoring options that are used when evaluating this requirement.
Implements clang::tooling::RefactoringOptionsRequirement.
Definition at line 101 of file RefactoringActionRuleRequirements.h.