summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/refactor/Tweak.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/refactor/Tweak.h')
-rw-r--r--clang-tools-extra/clangd/refactor/Tweak.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/refactor/Tweak.h b/clang-tools-extra/clangd/refactor/Tweak.h
index 79e0f3eceee..9b20d151589 100644
--- a/clang-tools-extra/clangd/refactor/Tweak.h
+++ b/clang-tools-extra/clangd/refactor/Tweak.h
@@ -46,7 +46,12 @@ public:
/// Parsed AST of the active file.
ParsedAST *
/// A location of the cursor in the editor.
+ // FIXME: Cursor is redundant and should be removed
SourceLocation Cursor;
+ /// The begin offset of the selection
+ unsigned SelectionBegin;
+ /// The end offset of the selection
+ unsigned SelectionEnd;
/// The AST nodes that were selected.
SelectionTree ASTSelection;
// FIXME: provide a way to get sources and ASTs for other files.
OpenPOWER on IntegriCloud