You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I generate a compile_commands.json for my project with bear make and one of the arguments is -Isrc to include some source files. Unfortunately cmake-ide fails to set flycheck-clang-include-path properly. I think this might be linked with #111
I took a look at the code and at least cmake-ide--set-flags-for-file has the correct -I argument in hdr-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:
@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.
@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 clangs format specification doesn't enforce absolute paths. Even this example in the official docs uses a relative path: Compilation Database Format.
I came up with this solution for bear (which actually switched from rel. to abs. paths):
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: