Still some pieces to go here: unit tests for new SourceCode functionality and
a command-line flag to force utf-8 mode. But wanted to get early feedback.
Details
Diff Detail
- Repository
- rCTE Clang Tools Extra
- Build Status
Buildable 28181 Build 28180: arc lint + arc unit
Event Timeline
The code looks good. For this protocol extension, we need supports from other LSP clients, I think we may want to propose this extension to the LSP specification, so that all LSP servers/clients respect it.
clangd/Protocol.h | ||
---|---|---|
377 | nit: also mention this is in preferred order. |
My reading of https://github.com/Microsoft/language-server-protocol/issues/376 is that they may only accept a proposal that comes with patches to Microsoft's implementations.
I'm not likely to work on that soon (it doesn't directly get us closer to interop goals) so my preferred path is implement and document the extension, get some support from other language clients/servers, and then push again for standardization.
Add tests, command-line flag, and misc cleanups.
No flag for clangd-indexer yet. It's surprisingly hard with the executor API :-(
I think we need to update the comment in the SymbolLocation::Column.
clangd/tool/ClangdMain.cpp | ||
---|---|---|
9 ↗ | (On Diff #187002) | the #include introduced by global code completion seems not get shortened. |
nit: also mention this is in preferred order.