Hi, I think this may be a bug.
For example, with the command "cppcheck --project=/path/compile_commands.json -I /include_path main.c", the include_path will not take effect.
Last edit: wy163 2026-01-21
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
In the file cppcheck/lib/cppcheck.cpp:
Maybe there is a problem with the code "tempSettings.includePaths = fs.includePaths;".
Why not append fs.includePaths to tempSettings.includePaths.
Last edit: wy163 2026-01-18
Hi, I think this may be a bug.
For example, with the command "cppcheck --project=/path/compile_commands.json -I /include_path main.c", the include_path will not take effect.
Last edit: wy163 2026-01-21