- For now, we don't trigger in any case if it's an empty selection
- Fixed unittests
Details
Details
- Reviewers
kadircet sammccall - Commits
- rG5844a5e9303f: Merging r366451: --------------------------------------------------------------…
rL366714: Merging r366451:
rGda5258c4040b: [Clangd] Changed ExtractVariable to only work on non empty selections
rCTE366451: [Clangd] Changed ExtractVariable to only work on non empty selections
rL366451: [Clangd] Changed ExtractVariable to only work on non empty selections
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
clang-tools-extra/clangd/refactor/Tweak.h | ||
---|---|---|
51 ↗ | (On Diff #210525) | maybe expose a SourceLocation SelectionEnd ? |
clang-tools-extra/clangd/refactor/Tweak.h | ||
---|---|---|
51 ↗ | (On Diff #210525) | Should I also have a SelectionStart? Or just use Cursor? |
clang-tools-extra/clangd/refactor/Tweak.h | ||
---|---|---|
51 ↗ | (On Diff #210525) | I think it makes more sense to have SelectionBegin than Cursor, AFAIK we usually don't have a notion of Cursor` when provided with a selection. |
clang-tools-extra/clangd/refactor/Tweak.h | ||
---|---|---|
51 ↗ | (On Diff #210525) | I'd suggest unsigned SelectionStart, SelectionEnd as it more clearly communicates this is main-file only and can be easily used with Code. I'd add a FIXME to remove Cursor as it's redundant (we can replace it with a method) |