-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
[Clangd] C++20 modules support ignores CompileFlags.Add/Remove compiling a module preamble #112635
Comments
@llvm/issue-subscribers-clang-modules Author: Petr Polezhaev (petr-polezhaev)
When used with `compile_commands.json` clangd seem to ignore flag modifications from `.clangd` when (and only when) compiling module information, leading to module search issues
Given
If I remove This breaks support for compiling with gcc (that requires |
@llvm/issue-subscribers-clangd Author: Petr Polezhaev (petr-polezhaev)
When used with `compile_commands.json` clangd seem to ignore flag modifications from `.clangd` when (and only when) compiling module information, leading to module search issues
Given
If I remove This breaks support for compiling with gcc (that requires |
When used with
compile_commands.json
clangd seem to ignore flag modifications from.clangd
when (and only when) compiling module information, leading to module search issuesGiven
compile_commands.json
:.clangd
:test.cppm
:main.cpp
:Results in:
If I remove
-ffoobar
fromcompile_commands.json
it works correctlyThis breaks support for compiling with gcc (that requires
-fmodule-ts
and other arguments clang does not understand) and using clangd, while generatingcompile_commands.json
with cmake. Using.clangd
to remove unsupported options (and add other options needed for clang) works for the rest of the functionality but not for modulesThe text was updated successfully, but these errors were encountered: