Are the both parses really invoked when --clang is combined with --project=foobar.json, is it intended, and why it is needed?
Good catch. at first sight this looks like some kind of bug. we do not intend to execute the internal parser at all as far as I know.
I will investigate..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On the on hand I see that cppcheck tries to execute clang:
and even executes it:
On the other hand the diagnostic messages persist that peculiar strictly to cppcheck's built-in C parser:
(the example is from [checking json project: different results for different starting directories] topic)
Are the both parses really invoked when --clang is combined with --project=foobar.json, is it intended, and why it is needed?
Good catch. at first sight this looks like some kind of bug. we do not intend to execute the internal parser at all as far as I know.
I will investigate..