-
-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++ modules, xmake and compile_commands.json? #4330
Comments
It should work for 2.8.3 see #4199 |
Note that I don't think |
You can check the generated compile_commands, if the generated flags don't have any problem, it should be an issue with clangd. |
I'm working on a big refactor of module compilation so maybe somes of your issues Will be fixed |
Yeah, my clangd and clang are both in version 18.0. Also, my stl header modules are generated using my system clang( I compiled libc++ from source), but despite of that I can't get it working. Let me know when you progress with that. I can help too if you want. |
No problem, i'll probably recompile my llvm with the clangd PR to try it |
Does clangd support it now? |
No, the support is incomplete: llvm/llvm-project#66462. I think we can close this. |
Note that, despite some intellisense working, I still got errors while importing std modules, like:
|
The only way i got the intellisense working is by using only modules (and not headerunits) |
Xmake Version
v2.8.3
Operating System Version and Architecture
arch linux
Describe Bug
I am experimenting with C++ modules and Xmake. Building and running modularized code on xmake works flawlessly, however, clangd seems not to work with the exported compile_commands.json.
I have the latest llvm ecossystem instaled (clang 18.0.0 and the latest libc++) with the experimental clangd modules support applyed on top.
Expected Behavior
Is this a expected behavior? Does Xmake support generating a compile_commands.json compatible with c++ modules?
Project Configuration
My source code tree(basically the stl_headerunit example):
My
xmake.lua
:Additional Information and Error Logs
The generation of my compile_commands.json
The file
The text was updated successfully, but these errors were encountered: