PeterSchops

Results 7 comments of PeterSchops

When you look at the reportError function, you can see that there are 2 possible ways it can write the extra information into the file. In case --cli the extra...

> Please give me the details. > > * A small example code. The shorter the better. > > * The exact xml output from cppcheck. > > > I...

cppcheck --addon=misra --enable=style misra-test-c.cpp --xml 2> out.xml cppcheck --addon=misra --enable=style misra-test-c.cpp 2> out.txt [demo.zip](https://github.com/danmar/cppcheck/files/12607525/demo.zip) In the XML-file I see use --rule-texts=, but when I try that, cppcheck tells me it...

The parsing of reportError data from cppcheckdata.py seems to be done here in cppcheck.cpp https://github.com/danmar/cppcheck/blob/5a21851bb7943fb29268043209d1a8e4e2780396/lib/cppcheck.cpp#L1458 ``` def reportError(location, severity, message, addon, errorId, misra_severity='', extra=''): if '--cli' in sys.argv: msg =...

> If the expected cppcheck xml output is this: > > ``` > > > > > ``` > > then maybe the corresponding addon output could look something like...

> > when I call the misra.py directly, and only pass the dump-files, does it also perform the ctu-info checks? > > If I am not mistaken the misra.py will...

Thanks for the input, I don't have time to continue with this for the moment. But when I have some spare time I will continue.