diff --git a/man/manual-premium.md b/man/manual-premium.md index 4c30dc6d4b3..375f1a7a258 100644 --- a/man/manual-premium.md +++ b/man/manual-premium.md @@ -1340,6 +1340,18 @@ Command to activate Misra C++ 2023 checkers: cppcheck --premium=misra-c++-2023 ... +## Suffixes + +Some rules can have a suffix appended to the rule id to mark a sub-category of the warning. This gives the subset its own id, so you can suppress just those cases while keeping the rest of the rule active. Additional information is included in the warning notes if the suffix is present. + +**-positive-constexpr** + +the value of the expression is a non-negative constant expression. This suffix is considered safe to suppress by Cppcheck. + +**-nocode** + +the line spliced into '//' comment contains no code, only whitespaces. + ### Checking all C and C++ files The `cert-c` and `misra-c-*` coding standards target C and therefore the checkers only check C files by default.