clang 20.0.0git
|
The refactoring rule context stores all of the inputs that might be needed by a refactoring action rule. More...
#include "clang/Tooling/Refactoring/RefactoringRuleContext.h"
Public Member Functions | |
RefactoringRuleContext (const SourceManager &SM) | |
const SourceManager & | getSources () const |
SourceRange | getSelectionRange () const |
Returns the current source selection range as set by the refactoring engine. | |
void | setSelectionRange (SourceRange R) |
bool | hasASTContext () const |
ASTContext & | getASTContext () const |
void | setASTContext (ASTContext &Context) |
llvm::Error | createDiagnosticError (SourceLocation Loc, unsigned DiagID) |
Creates an llvm::Error value that contains a diagnostic. | |
llvm::Error | createDiagnosticError (unsigned DiagID) |
void | setASTSelection (std::unique_ptr< SelectedASTNode > Node) |
The refactoring rule context stores all of the inputs that might be needed by a refactoring action rule.
It can create the specialized ASTRefactoringOperation
or PreprocessorRefactoringOperation
values that can be used by the refactoring action rules.
The following inputs are stored by the operation:
Definition at line 33 of file RefactoringRuleContext.h.
|
inline |
Definition at line 35 of file RefactoringRuleContext.h.
References SM.
|
inline |
Creates an llvm::Error value that contains a diagnostic.
The errors should not outlive the context.
Definition at line 57 of file RefactoringRuleContext.h.
References clang::DiagnosticError::create(), and Loc.
Referenced by createDiagnosticError().
|
inline |
Definition at line 61 of file RefactoringRuleContext.h.
References createDiagnosticError().
|
inline |
Definition at line 47 of file RefactoringRuleContext.h.
|
inline |
Returns the current source selection range as set by the refactoring engine.
Can be invalid.
Definition at line 41 of file RefactoringRuleContext.h.
|
inline |
Definition at line 37 of file RefactoringRuleContext.h.
|
inline |
Definition at line 45 of file RefactoringRuleContext.h.
|
inline |
Definition at line 52 of file RefactoringRuleContext.h.
|
inline |
Definition at line 65 of file RefactoringRuleContext.h.
References Node.
|
inline |
Definition at line 43 of file RefactoringRuleContext.h.