xen: Add MISRA support to cppcheck make rule
authorBertrand Marquis <bertrand.marquis@arm.com>
Mon, 4 Jul 2022 12:45:04 +0000 (14:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Jul 2022 12:45:04 +0000 (14:45 +0200)
commit57caa5375321291d40dbb598087eb6f03d1c8d2d
treee15ec17418078186435047f20cc41f40ac2da403
parentbf2f989531ad3851685a1847cbc1e28901ed80a2
xen: Add MISRA support to cppcheck make rule

cppcheck MISRA addon can be used to check for non compliance to some of
the MISRA standard rules.

Add a CPPCHECK_MISRA variable that can be set to "y" using make command
line to generate a cppcheck report including cppcheck misra checks.

When MISRA checking is enabled, a file with a text description suitable
for cppcheck misra addon is generated out of Xen documentation file
which lists the rules followed by Xen (docs/misra/rules.rst).

By default MISRA checking is turned off.

While adding cppcheck-misra files to gitignore, also fix the missing /
for htmlreport gitignore

Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com>
Reviewed-by: Michal Orzel <michal.orzel@arm.com>
Tested-by: Michal Orzel <michal.orzel@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
.gitignore
xen/Makefile
xen/tools/convert_misra_doc.py [new file with mode: 0644]