clang 20.0.0git
|
A selection requirement that is satisfied when the selection range overlaps with a number of neighbouring statements in the AST. More...
#include "clang/Tooling/Refactoring/RefactoringActionRuleRequirements.h"
Public Member Functions | |
Expected< CodeRangeASTSelection > | evaluate (RefactoringRuleContext &Context) const |
Public Member Functions inherited from clang::tooling::ASTSelectionRequirement | |
Expected< SelectedASTNode > | evaluate (RefactoringRuleContext &Context) const |
Public Member Functions inherited from clang::tooling::SourceRangeSelectionRequirement | |
Expected< SourceRange > | evaluate (RefactoringRuleContext &Context) const |
A selection requirement that is satisfied when the selection range overlaps with a number of neighbouring statements in the AST.
The statemenst must be contained in declaration like a function. The selection range must be a non-empty source selection (i.e. cursors won't be accepted).
The requirement will be evaluated only once during the initiation and search of matching refactoring action rules.
Definition at line 74 of file RefactoringActionRuleRequirements.h.
Expected< CodeRangeASTSelection > CodeRangeASTSelectionRequirement::evaluate | ( | RefactoringRuleContext & | Context | ) | const |
Definition at line 32 of file ASTSelectionRequirements.cpp.
References clang::tooling::CodeRangeASTSelection::create(), and clang::tooling::ASTSelectionRequirement::evaluate().