-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
include pathes provided by isystem are ignored by compile commands parser #1156
Comments
What is |
https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html |
How are you generating the compile_commands.json? Is this a bug with how we're processing that file or how it's generated by another tool? Are we not reading a particular field in the json? |
I'm generating it using cmake with a -DCMAKE_EXPORT_COMPILE_COMMANDS=ON parameter provided. |
We can fix this. Thanks for letting us know about the issue. |
Hi, I have the same issue here. I think you could just treat -isystem paths the same as normal -I include paths but do not warn if it is not possible to resolve any further includes from the referenced system header. |
This should be fixed in 0.14.4 |
Sorry to rain on your parade, but the problem is (at least for cmake generated compilation databases) unfortunately not fixed in 0.14.4. I put together a minimal working example which shows the problem. In summary, it seems to be that The result is that all |
I implemented the change based on my reading of the Clang documentation which shows no space after |
@niosHD 0.14.5 should work with -isystem now (with a space). Let us know if you hit any other issues (preferably by filing a new bug). |
Perfect, I can confirm that the minimal working example works with 0.14.5 as expected. A quick test on a more complex project setup also looks promising. @sean-mcmanus @bobbrow Thank you for the prompt fix! |
No description provided.
The text was updated successfully, but these errors were encountered: