clang 19.0.0git
Public Member Functions | List of all members
clang::tooling::CodeRangeASTSelectionRequirement Class Reference

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"

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

Public Member Functions

Expected< CodeRangeASTSelectionevaluate (RefactoringRuleContext &Context) const
 
- Public Member Functions inherited from clang::tooling::ASTSelectionRequirement
Expected< SelectedASTNodeevaluate (RefactoringRuleContext &Context) const
 
- Public Member Functions inherited from clang::tooling::SourceRangeSelectionRequirement
Expected< SourceRangeevaluate (RefactoringRuleContext &Context) const
 

Detailed Description

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.

See also
CodeRangeASTSelection

Definition at line 74 of file RefactoringActionRuleRequirements.h.

Member Function Documentation

◆ evaluate()

Expected< CodeRangeASTSelection > CodeRangeASTSelectionRequirement::evaluate ( RefactoringRuleContext Context) const

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