clang
7.0.0
|
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 override |
Returns the set of refactoring options that are used when evaluating this requirement. More... | |
Expected< typename OptionType::ValueType > | evaluate (RefactoringRuleContext &) const |
![]() | |
virtual | ~RefactoringOptionsRequirement () |
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 97 of file RefactoringActionRuleRequirements.h.
|
inline |
Definition at line 99 of file RefactoringActionRuleRequirements.h.
|
inline |
Definition at line 107 of file RefactoringActionRuleRequirements.h.
References getValue().
|
inlinefinaloverridevirtual |
Returns the set of refactoring options that are used when evaluating this requirement.
Implements clang::tooling::RefactoringOptionsRequirement.
Definition at line 102 of file RefactoringActionRuleRequirements.h.