This would make go-to-def works on the cases like int A = abc^;
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Build result: pass - 60338 tests passed, 0 failed and 732 were skipped.
Log files: console-log.txt, CMakeCache.txt
clang-tools-extra/clangd/Selection.cpp | ||
---|---|---|
517 | Would you mind preserving the prev-character check? I'd suggest extracting a lambda IsIgnoredChar or so to keep the condition simple. |
Would you mind preserving the prev-character check?
I don't know how to observe it in tests, but when debugging SelectionTree (e.g. for (;;)) it's nice to have the internal state be what you expect.
I'd suggest extracting a lambda IsIgnoredChar or so to keep the condition simple.