- For now, we don't trigger in any case if it's an empty selection
- Fixed unittests
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
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 35238 Build 35237: arc lint + arc unit
Event Timeline
clang-tools-extra/clangd/refactor/Tweak.h | ||
---|---|---|
51 | maybe expose a SourceLocation SelectionEnd ? |
clang-tools-extra/clangd/refactor/Tweak.h | ||
---|---|---|
51 | Should I also have a SelectionStart? Or just use Cursor? |
clang-tools-extra/clangd/refactor/Tweak.h | ||
---|---|---|
51 | 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 | 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) |
maybe expose a SourceLocation SelectionEnd ?