clang 20.0.0git
|
An AST selection requirement is satisfied when any portion of the AST overlaps with the selection range. More...
#include "clang/Tooling/Refactoring/RefactoringActionRuleRequirements.h"
Public Member Functions | |
Expected< SelectedASTNode > | evaluate (RefactoringRuleContext &Context) const |
Public Member Functions inherited from clang::tooling::SourceRangeSelectionRequirement | |
Expected< SourceRange > | evaluate (RefactoringRuleContext &Context) const |
An AST selection requirement is satisfied when any portion of the AST overlaps with the selection range.
The requirement will be evaluated only once during the initiation and search of matching refactoring action rules.
Definition at line 60 of file RefactoringActionRuleRequirements.h.
Expected< SelectedASTNode > ASTSelectionRequirement::evaluate | ( | RefactoringRuleContext & | Context | ) | const |
Definition at line 17 of file ASTSelectionRequirements.cpp.
References clang::tooling::SourceRangeSelectionRequirement::evaluate(), and clang::tooling::findSelectedASTNodes().
Referenced by clang::tooling::CodeRangeASTSelectionRequirement::evaluate().