Nathan Ridge
Nathan Ridge
It looks like gcc and clang differ on whether they accept this code. Pasting the contents of the "reproduction code" into a file named `test.c`, `gcc -c -std=c23 test.c` succeeds...
I think this suggests that clangd is processing your header file as a C++ file (and then the log message is saying that it can't apply your `.clang-format` because your...
> * Header files are found within the project directory, not outside it > > * compile_commands.json does not include .h files and the heuristics to choose a matching /...
> See attached for lsp log from Neovim. > > Note this project involves UEFI headers, so there is no .c file matching the .h files > > [lsp.log](https://github.com/user-attachments/files/19967992/lsp.log) >...
> Solutions: > > * Create a .clangd file in the project root with these two lines, forcing all files to be C > CompileFlags: > Add: [-xc] Just to...
Thanks for the added details. It sounds like the setup described in "test 2" is working well for you, and the message in the log can be ignored. (Let me...
As documented at https://clangd.llvm.org/features#experimental-c20-modules-support, Modules support is experimental and behind a flag. Please try using a recent clangd version (modules support first appeared in clangd 19, but a lot of...
If you're referring to the class name not being printed in the signature help popup, that's intentional to keep the length of the popup contents manageable. The contents of the...
Likely duplicate of https://github.com/clangd/clangd/issues/1182.
I believe this is a known consequence of clangd's [preamble optimization](https://github.com/clangd/clangd/issues/200#issuecomment-554973739). Clang-tidy checkers are only run on the "main file" portion of the file, not the preamble.