diff --git a/man/manual.docbook b/man/manual.docbook index fd53aed63..80faec42d 100644 --- a/man/manual.docbook +++ b/man/manual.docbook @@ -816,7 +816,7 @@ Rule text these.
- Suppressing a certain error type + Plain text suppressions You can suppress certain types of errors. The format for such a suppression is one of: @@ -869,6 +869,25 @@ uninitvar
+
+ XML suppressions + + You can specify suppressions in a XML file. Example file: + + <?xml version="1.0"?> +<suppressions> + <suppression> + <id>uninitvar</id> + <fileName>src/file1.c</fileName> + <lineNumber>10</lineNumber> + <symbolName>var</symbolName> + </suppression> +</suppressions> + + The xml format is extensible and may be extended with further + attributes in the future. +
+
Inline suppressions @@ -902,6 +921,17 @@ Checking test.c... No error is reported when invoking cppcheck this way: cppcheck --inline-suppr test.c + + you can specify that the inline suppression only applies to a + specific symbol: + + // cppcheck-suppress arrayIndexOutOfBounds symbolName=arr + + You can write comments for the suppress, however is recommended + to use ; or // to specify where they start: + + // cppcheck-suppress arrayIndexOutOfBounds ; some comment +// cppcheck-suppress arrayIndexOutOfBounds // some comment