Now I tried to use the GUI.
I created a cppcheck project file where I enabled Addons >> MISRA C 2012 and I se the proper path to MISRA rule texts file.
But I see that no .dump files are generated, and no misra checks are executed.
I read about a misra.json file, but I understood it's a different way to execute misra checks from the command line.
I don't think I need it from the GUI.
Can you clarify how to use misra from the GUI?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
check in the cppcheck build dir, you should get dump files there. the path to the cppcheck build dir is shown in the project dialog at the top of the "Analysis" tab.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have the same problem with cppcheck GUI version 2.9. Misra check doesn't produce any result.
Cppcheck works correctly in the command shell but the GUI doesn't work.
Running the command from the shell:
cppcheck --project=cppc.cppcheck it works correctly even if it doesn't find the rule file.
I was able to run misra check successfully from the command line, with the options
Now I tried to use the GUI.
I created a cppcheck project file where I enabled Addons >> MISRA C 2012 and I se the proper path to MISRA rule texts file.
But I see that no .dump files are generated, and no misra checks are executed.
I read about a misra.json file, but I understood it's a different way to execute misra checks from the command line.
I don't think I need it from the GUI.
Can you clarify how to use misra from the GUI?
Thanks
One more test: I used
cppcheck --addon=misra.json main.c
and I see that misra check are executed.
So the issue is in the GUI only.
check in the cppcheck build dir, you should get dump files there. the path to the cppcheck build dir is shown in the project dialog at the top of the "Analysis" tab.
Some files are created in the build dir (.a1, .c.snalyzerinfo, *.s1), but no dump files
Can I check something else to discover why MISRA check doesn't work from the GUI?
Thanks
Sorry for pushing,
but is there any news on this behavior?
Thanks
oops I forgot about this! it was good you reminded me.
Last edit: Daniel Marjamäki 2021-12-15
Hello @Daniel Marjamäki
did you have a chance to investigate on this issue?
Thanks
please share the GUI project file.
And can you try to run the GUI project on the command line:
does misra work then?
Dear all,
I have the same problem with cppcheck GUI version 2.9. Misra check doesn't produce any result.
Cppcheck works correctly in the command shell but the GUI doesn't work.
Running the command from the shell:
cppcheck --project=cppc.cppcheck it works correctly even if it doesn't find the rule file.
Attached is the cppc.cppcheck file.
Could you help me please?
Thanks.
BR
Gianni Perugini