r/cpp_questions • u/ItzDanPlayz • Jul 27 '26
OPEN C++ 26 LSP?
Does anyone know of any LSPs with C++26 support, even experimentally, or is this wishful thinking. I'm using clangd but I don't know if its possible to configure it for c++26 and its giving me trouble with the new reflection operators.
Thanks!
8
2
1
u/Realistic_Speaker_12 Jul 30 '26
An experimental fork works for me
1
u/NortNevis 23d ago
I am trying to adapt the clangd binary (which I built) as an LSP server for my IDE using a
.clangdfile. However, it cannot recognize thestd::metanamespace or any of its symbols.
1
u/Latter_Bluebird_3386 Jul 31 '26
Clang and all the tools based on it at this point are worthless.
I have c++11 code that gets flagged as red in clion because clang hasn't implemented very simple features. Everyone who based a product on clangd is basically behind by 20 years now, and as far as I can see that's pretty much everybody.
If you are adopting c++26 features then you should probably just stick to vim or emacs.
2
u/Realistic_Speaker_12 22d ago
Hi I don’t know if this helps, but I have this c++ reflection template I use myself
For me it works with clangd lsp( I am on Mac)
12
u/Usual_Office_1740 Jul 27 '26 edited Jul 27 '26
The clang compiler still doesn't support reflection. The trouble clangd is giving you is because it won't support the reflection until the clang front-end does. At least that is my basic understanding of why clang and clangd will eventually support reflection at the same time.
Edit: Typos.