[PATCH] D64912: [Clangd] Changed ExtractVariable to only work on non empty selections

2019-07-18 Thread Shaurya Gupta via Phabricator via cfe-commits
SureYeaah created this revision. SureYeaah added reviewers: kadircet, sammccall. Herald added subscribers: cfe-commits, arphaman, jkorous, MaskRay, ilya-biryukov. Herald added a project: clang. - For now, we don't trigger in any case if it's an empty selection - Fixed unittests Repository: rG

[PATCH] D64912: [Clangd] Changed ExtractVariable to only work on non empty selections

2019-07-18 Thread Shaurya Gupta via Phabricator via cfe-commits
SureYeaah updated this revision to Diff 210526. SureYeaah added a comment. Added tests Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64912/new/ https://reviews.llvm.org/D64912 Files: clang-tools-extra/clangd/refactor/Tweak.cpp clang-tools-extr

[PATCH] D64912: [Clangd] Changed ExtractVariable to only work on non empty selections

2019-07-18 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang-tools-extra/clangd/refactor/Tweak.h:51 +/// The Length of the selection +unsigned SelectionLength; /// The AST nodes that were selected. maybe expose a `SourceLocation SelectionEnd` ? Repository:

[PATCH] D64912: [Clangd] Changed ExtractVariable to only work on non empty selections

2019-07-18 Thread Shaurya Gupta via Phabricator via cfe-commits
SureYeaah marked an inline comment as done. SureYeaah added inline comments. Comment at: clang-tools-extra/clangd/refactor/Tweak.h:51 +/// The Length of the selection +unsigned SelectionLength; /// The AST nodes that were selected. kadircet wrote: >

[PATCH] D64912: [Clangd] Changed ExtractVariable to only work on non empty selections

2019-07-18 Thread Shaurya Gupta via Phabricator via cfe-commits
SureYeaah updated this revision to Diff 210536. SureYeaah added a comment. Added selectionend Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64912/new/ https://reviews.llvm.org/D64912 Files: clang-tools-extra/clangd/refactor/Tweak.cpp clang-too

[PATCH] D64912: [Clangd] Changed ExtractVariable to only work on non empty selections

2019-07-18 Thread Shaurya Gupta via Phabricator via cfe-commits
SureYeaah updated this revision to Diff 210537. SureYeaah added a comment. Fixed comment Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64912/new/ https://reviews.llvm.org/D64912 Files: clang-tools-extra/clangd/refactor/Tweak.cpp clang-tools-ex

[PATCH] D64912: [Clangd] Changed ExtractVariable to only work on non empty selections

2019-07-18 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang-tools-extra/clangd/refactor/Tweak.h:51 +/// The Length of the selection +unsigned SelectionLength; /// The AST nodes that were selected. SureYeaah wrote: > kadircet wrote: > > maybe expose a `SourceLo

[PATCH] D64912: [Clangd] Changed ExtractVariable to only work on non empty selections

2019-07-18 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/clangd/refactor/Tweak.h:51 +/// The Length of the selection +unsigned SelectionLength; /// The AST nodes that were selected. kadircet wrote: > SureYeaah wrote: > > kadircet wrote: > > > m

[PATCH] D64912: [Clangd] Changed ExtractVariable to only work on non empty selections

2019-07-18 Thread Shaurya Gupta via Phabricator via cfe-commits
SureYeaah updated this revision to Diff 210577. SureYeaah added a comment. Added SelectionBegin and SelectionEnd to Tweak::Selection Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D64912/new/ https://reviews.llvm.org/D64912 Files: clang-tools-extr

[PATCH] D64912: [Clangd] Changed ExtractVariable to only work on non empty selections

2019-07-18 Thread Shaurya Gupta via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL366451: [Clangd] Changed ExtractVariable to only work on non empty selections (authored by SureYeaah, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior t