-
-
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
unxpected -I
in compile_command.json
#3020
Comments
I remember previous feedback from users that cpptools or clangd did not yet support parsing headers from Also, |
So could we have an argument to adjust it? |
And according to https://clangd.llvm.org/guides/system-headers#search-directories-mentioned-with-compile-flags, clangd does support "-isystem" and by my testings, when I replace all "-I" with "-isystem" in compile_commands.json, both clangd and clang-tidy respect the "-isystem" in compile_commands.json |
Not only clangd, but also many LSPs, cpptools/ccls ... There is no guarantee that all LSPs will support -isystem, but -I is certainly the most compatible. |
So could we have an argument to adjust it? Since -isystem will ignore the warning and tidy error but -I will still have it. |
no arguments now. |
I added a
|
Xmake Version
v2.7.2+202210241457
Operating System Version and Architecture
Ubuntu 22.04
Describe Bug
xmake use the flag
-isystem
for the package include path. But when generating the compile_command.json, it is-I
compile_command.json:
Expected Behavior
should generate the following in compile_command.json
Project Configuration
No response
Additional Information and Error Logs
No response
The text was updated successfully, but these errors were encountered: