You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing definitions when using zig drop-in c/c++ compiler and clangd #25979
The language server doesnot work properly because of missing definitions for libc++.
After some digging, I found that there should be a __config_site.h in libc++, but it seems that zig will use -D when compiling. Clangd failed to detect these definitions, so it cannot work unless we use the verbose mode to compile and add these definitions manually in CMakeLists.txt to generate a database file which contains these definitions.
Expected Behavior
When using clang in Msys2/UCRT64, clangd works fine.
changed the title [-]Missing definitions when using clangd[/-][+]Missing definitions when using zig drop-in c/c++ compiler and clangd[/+]on Nov 19, 2025
Activity
[-]Missing definitions when using clangd[/-][+]Missing definitions when using zig drop-in c/c++ compiler and clangd[/+]