clang 20.0.0git
|
A refactoring action rule requirement determines when a refactoring action rule can be invoked. More...
#include "clang/Tooling/Refactoring/RefactoringActionRuleRequirements.h"
A refactoring action rule requirement determines when a refactoring action rule can be invoked.
The rule can be invoked only when all of the requirements are satisfied.
Subclasses must implement the 'Expected<T> evaluate(RefactoringRuleContext &) const' member function. T
is used to determine the return type that is passed to the refactoring rule's constructor. For example, the SourceRangeSelectionRequirement
subclass defines 'Expected<SourceRange> evaluate(RefactoringRuleContext &Context) const' function. When this function returns a non-error value, the resulting source range is passed to the specific refactoring action rule constructor (provided all other requirements are satisfied).
Definition at line 36 of file RefactoringActionRuleRequirements.h.