class CodeRangeASTSelectionRequirement

Declaration

class CodeRangeASTSelectionRequirement
    : public ASTSelectionRequirement { /* full declaration omitted */ };

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.

Declared at: clang/include/clang/Tooling/Refactoring/RefactoringActionRuleRequirements.h:74

Inherits from: ASTSelectionRequirement

Method Overview

  • public Expected<clang::tooling::CodeRangeASTSelection> evaluate(clang::tooling::RefactoringRuleContext & Context) const

Inherited from ASTSelectionRequirement:

Inherited from SourceRangeSelectionRequirement:

Methods

ΒΆExpected<clang::tooling::CodeRangeASTSelection>
evaluate(clang::tooling::RefactoringRuleContext&
             Context) const

Declared at: clang/include/clang/Tooling/Refactoring/RefactoringActionRuleRequirements.h:77

Parameters

clang::tooling::RefactoringRuleContext& Context