-
Notifications
You must be signed in to change notification settings - Fork 94
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
--options-file
in compile_commands.json
is not parsed
#592
Comments
Is |
In my local testing, neither clang nor gcc recognize it. Perhaps it's a different compiler that does. So, this issue falls into the category of "compile_commands.json needs to contain commands that clang recognizes". That said, clang does support something similar called response files. They are files that contain one command line argument per line, and are referred to using So, if the format of the option file is the same in your case, then replacing |
This option seems to be nvcc-specific. |
I encountered the same issue for nvcc. I think CMake generates these I also found out that there are flags to prevent CMake from creating those files:
That solved the issue for me, but it seems more like a workaround since response files are required on some systems. |
Sometimes the generated
compile_commands.json
does not directly include-I
options, instead, the--options-file
option is used, and the-I
options are placed within a separate file.In this case,
vscode-clangd
is unable to follow the includes. But it should be possible to parse the--options-file
option and fetch the needed options there.The text was updated successfully, but these errors were encountered: