News for hackers. Stuff that matters.
Re:The future of Clang-based tooling by CalChris on Saturday July 29, 2023 @01:13PM (#36922330)
Says clang isn't a toolsmith’s compiler. Doesn't mention clangd. Hmmm. Even Apple switched from libclang to clangd.

https://lists.llvm.org/pipermail/cfe-dev/2018-April/057668.h...

Re:The future of Clang-based tooling by Ericson2314 on Saturday July 29, 2023 @01:40PM (#36922587)
libclang is a library, clangd is an executable. That post is about switching away from libclang-based tooling infrastructure; i.e. stop developing their own tool.

There differences in C wrapper vs C++ are superficial and not what this blog post is about. The problems are rather with the poor division of labor between the intermediate represents and the lies that they are properly self-contained. This is about what clang does, irrespective of whether one slaps a C interface on top or not.

Re:The future of Clang-based tooling by CalChris on Saturday July 29, 2023 @01:59PM (#36922797)
You wouldn't 'execute' clangd. You would send it messages adhering to its Language Server Protocol [1]. The distinction between library API and server API is small. Moreover, Apple switched away from libclang-based tooling towards clangd.

[1] https://microsoft.github.io/language-server-protocol/specifi...

Re:The future of Clang-based tooling by tyg13 on Saturday July 29, 2023 @02:31PM (#36923090)
I can't tell if you're trying to split hairs or just being unintentionally obtuse. How do you propose sending clangd messages without executing it, i.e. starting the language server?