clang
8.0.0
|
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. More... | |
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. More... | |
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 34 of file RefactoringRuleContext.h.
|
inline |
Definition at line 36 of file RefactoringRuleContext.h.
|
inline |
Creates an llvm::Error value that contains a diagnostic.
The errors should not outlive the context.
Definition at line 58 of file RefactoringRuleContext.h.
References clang::DiagnosticError::create().
Referenced by createDiagnosticError(), and clang::tooling::RenameOccurrences::initiate().
|
inline |
Definition at line 62 of file RefactoringRuleContext.h.
References createDiagnosticError().
|
inline |
Definition at line 48 of file RefactoringRuleContext.h.
Referenced by clang::tooling::QualifiedRenameRule::describe(), clang::tooling::RenameOccurrences::initiate(), and clang::tooling::QualifiedRenameRule::initiate().
|
inline |
Returns the current source selection range as set by the refactoring engine.
Can be invalid.
Definition at line 42 of file RefactoringRuleContext.h.
|
inline |
Definition at line 38 of file RefactoringRuleContext.h.
|
inline |
Definition at line 46 of file RefactoringRuleContext.h.
|
inline |
Definition at line 53 of file RefactoringRuleContext.h.
|
inline |
Definition at line 66 of file RefactoringRuleContext.h.
|
inline |
Definition at line 44 of file RefactoringRuleContext.h.