11 using namespace clang;
12 using namespace tooling;
20 return Range.takeError();
26 Range->getBegin(), diag::err_refactor_selection_invalid_ast);
27 return std::move(*Selection);
36 return ASTSelection.takeError();
37 std::unique_ptr<SelectedASTNode> StoredSelection =
38 std::make_unique<SelectedASTNode>(std::move(*ASTSelection));
44 diag::err_refactor_selection_invalid_ast);
46 return std::move(*CodeRange);
SourceRange getSelectionRange() const
Returns the current source selection range as set by the refactoring engine.
llvm::Error createDiagnosticError(SourceLocation Loc, unsigned DiagID)
Creates an llvm::Error value that contains a diagnostic.
void setASTSelection(std::unique_ptr< SelectedASTNode > Node)
The refactoring rule context stores all of the inputs that might be needed by a refactoring action ru...
ASTContext & getASTContext() const
Dataflow Directional Tag Classes.
SourceLocation getBegin() const