From b8f9ea20cadf4ad6d3dc30927a1a422ea7238e3a Mon Sep 17 00:00:00 2001 From: William Jakobsson <50847546+wjakobsson@users.noreply.github.com> Date: Fri, 26 Jun 2026 14:45:28 +0200 Subject: [PATCH 1/8] Documentation: Added suffix section --- man/manual-premium.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/man/manual-premium.md b/man/manual-premium.md index 4c30dc6d4b3..cdd85e22a07 100644 --- a/man/manual-premium.md +++ b/man/manual-premium.md @@ -193,6 +193,14 @@ portability warnings. Implementation defined behavior. 64-bit portability. Some configuration problems, which does not relate to the syntactical correctness, but the used Cppcheck configuration could be improved. +## 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. + ## Possible speedup analysis of template code Cppcheck instantiates the templates in your code. From f0792c34bb8e55d62c5a946250d0e2b6ce4e59b9 Mon Sep 17 00:00:00 2001 From: William Jakobsson <50847546+wjakobsson@users.noreply.github.com> Date: Fri, 26 Jun 2026 14:48:49 +0200 Subject: [PATCH 2/8] [skip ci] From d7a5c319296a984c167ddc5e29440b7c5c5be260 Mon Sep 17 00:00:00 2001 From: William Jakobsson <50847546+wjakobsson@users.noreply.github.com> Date: Fri, 26 Jun 2026 15:10:14 +0200 Subject: [PATCH 3/8] move section [skip ci] --- man/manual-premium.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/man/manual-premium.md b/man/manual-premium.md index cdd85e22a07..ab97f80c031 100644 --- a/man/manual-premium.md +++ b/man/manual-premium.md @@ -193,14 +193,6 @@ portability warnings. Implementation defined behavior. 64-bit portability. Some configuration problems, which does not relate to the syntactical correctness, but the used Cppcheck configuration could be improved. -## 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. - ## Possible speedup analysis of template code Cppcheck instantiates the templates in your code. @@ -1348,6 +1340,14 @@ 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. + ### 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. From 2f1dd1ecbf16c9db53df089432119164b25a4ddb Mon Sep 17 00:00:00 2001 From: William Jakobsson <50847546+wjakobsson@users.noreply.github.com> Date: Fri, 26 Jun 2026 15:14:45 +0200 Subject: [PATCH 4/8] additonal text [skip ci] --- man/manual-premium.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man/manual-premium.md b/man/manual-premium.md index ab97f80c031..4d162687720 100644 --- a/man/manual-premium.md +++ b/man/manual-premium.md @@ -1342,7 +1342,7 @@ Command to activate Misra C++ 2023 checkers: ## 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. +Some rules can have a suffix appended to the rule id to mark a sub-category of the warning that Cppcheck considers safe to suppress. 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** From a3d95bdd6785dcdd457e4ae42ada89b5fa289911 Mon Sep 17 00:00:00 2001 From: William Jakobsson <50847546+wjakobsson@users.noreply.github.com> Date: Fri, 26 Jun 2026 15:42:38 +0200 Subject: [PATCH 5/8] adjust text [skip ci] --- man/manual-premium.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/man/manual-premium.md b/man/manual-premium.md index 4d162687720..f5b307749ca 100644 --- a/man/manual-premium.md +++ b/man/manual-premium.md @@ -1342,11 +1342,11 @@ Command to activate Misra C++ 2023 checkers: ## Suffixes -Some rules can have a suffix appended to the rule id to mark a sub-category of the warning that Cppcheck considers safe to suppress. 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. +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. +the value of the expression is a non-negative constant. This suffix is considered safe to suppress by Cppcheck. ### Checking all C and C++ files From 2a312273360653478b80bf76d04d050634c58685 Mon Sep 17 00:00:00 2001 From: William Jakobsson <50847546+wjakobsson@users.noreply.github.com> Date: Mon, 29 Jun 2026 14:34:07 +0200 Subject: [PATCH 6/8] suffixes --- man/manual-premium.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/man/manual-premium.md b/man/manual-premium.md index f5b307749ca..bb22dd4388c 100644 --- a/man/manual-premium.md +++ b/man/manual-premium.md @@ -1348,6 +1348,11 @@ Some rules can have a suffix appended to the rule id to mark a sub-category of t the value of the expression is a non-negative constant. This suffix is considered safe to suppress by Cppcheck. +**-nocode** + +**-char / -short / -long / -long-long** +specifies the specific inappropriate type used in bit field decleration + ### 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. From ba73194ac076b771eb74a8fa6b8408a317997043 Mon Sep 17 00:00:00 2001 From: William Jakobsson <50847546+wjakobsson@users.noreply.github.com> Date: Mon, 29 Jun 2026 14:35:06 +0200 Subject: [PATCH 7/8] [skip ci] From dfc240d936565531828ef22d26f5abca1aab3162 Mon Sep 17 00:00:00 2001 From: William Jakobsson <50847546+wjakobsson@users.noreply.github.com> Date: Mon, 29 Jun 2026 17:15:55 +0200 Subject: [PATCH 8/8] remove - and expanded on -nocode desc [skip ci] --- man/manual-premium.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/man/manual-premium.md b/man/manual-premium.md index bb22dd4388c..375f1a7a258 100644 --- a/man/manual-premium.md +++ b/man/manual-premium.md @@ -1346,12 +1346,11 @@ Some rules can have a suffix appended to the rule id to mark a sub-category of t **-positive-constexpr** -the value of the expression is a non-negative constant. This suffix is considered safe to suppress by Cppcheck. +the value of the expression is a non-negative constant expression. This suffix is considered safe to suppress by Cppcheck. **-nocode** -**-char / -short / -long / -long-long** -specifies the specific inappropriate type used in bit field decleration +the line spliced into '//' comment contains no code, only whitespaces. ### Checking all C and C++ files