diff --git a/man/manual.docbook b/man/manual.docbook index e5e1b55b1..60b3e77d5 100644 --- a/man/manual.docbook +++ b/man/manual.docbook @@ -756,15 +756,10 @@ gui/test.cpp,16,error,mismatchAllocDealloc,Mismatching allocation and deallocati Cppcheck has an addon that checks for MISRA C 2012 compliance. - It is not allowed to publish the MISRA rule - texts. Therefore the MISRA rule texts are not available - directly in the addon. Instead, the addon can read the rule texts either - from the Misra PDF file or from a text file. -
Requirements - The Cppcheck MISRA addon requires: + You need: @@ -772,32 +767,31 @@ gui/test.cpp,16,error,mismatchAllocDealloc,Mismatching allocation and deallocati - For rule texts; MISRA PDF/Text file + The MISRA C 2012 PDF. You can buy this from + http://www.misra.org.uk (costs 15-20 pounds)
-
- MISRA PDF - - If you want your code to be MISRA compliant - then you probably have the MISRA PDF. - - However the MISRA PDF can only be used directly by the addon if - the xpdf package is installed, it is a cross platform - open source package. -
-
MISRA Text file - If you have installed xpdf, this text file can - be easily generated on the command line (using - pdftotext that is included in - xpdf): + It is not allowed to publish the MISRA rule + texts. Therefore the MISRA rule texts are not + available directly in the addon. Instead, the addon can read the rule + texts from a text file. If you copy/paste all text in "Appendix A + Summary of guidelines" from the MISRA pdf, then you have all the rule + texts. + + If you have installed xpdf, such text file can + be generated on the command line (using pdftotext + that is included in xpdf): pdftotext misra-c-2012.pdf output.txt + The output might not be 100% perfect so you might need to make + minor tweaks manually. + Other pdf-to-text utilities might work also. To create the text file manually, copy paste Appendix A "Summary @@ -809,6 +803,9 @@ Rule text Rule 1.2 Rule text ... + + Rules that you want to disable does not need to have a rule text. + Rules that don't have rule text will be suppressed by the addon.