clang 19.0.0git
clang::tooling::RefactoringActionRuleRequirement Class Reference

A refactoring action rule requirement determines when a refactoring action rule can be invoked. More...

#include "clang/Tooling/Refactoring/RefactoringActionRuleRequirements.h"

Inheritance diagram for clang::tooling::RefactoringActionRuleRequirement:
Inheritance graph
[legend]

Detailed Description

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.


The documentation for this class was generated from the following file: