-
Notifications
You must be signed in to change notification settings - Fork 92
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
flycheck-clang-include-path not being set with compile_commands.json #112
Comments
Here's a demo project, make sure to edit |
Had a similar issue. Most likely because |
@juergenhoetzel You're probably right. Since cmake-ide was written with CMake in mind, and I knew CMake only uses absolute paths, it assumes that's the case. |
Seems I came up with this solution for jq '[.[] | .file = .directory + "/" + .file]' compile_commands.json > compile_commands.json.$$ && mv compile_commands.json.$$ compile_commands.json |
I generate a
compile_commands.json
for my project withbear make
and one of the arguments is-Isrc
to include some source files. Unfortunately cmake-ide fails to setflycheck-clang-include-path
properly. I think this might be linked with #111I took a look at the code and at least
cmake-ide--set-flags-for-file
has the correct-I
argument inhdr-flags
, though it is discarded at the end of the function if I'm opening a source file.The text was updated successfully, but these errors were encountered: