From 0bddc06f052f4afa0d4473ac32d7394d3cfff44e 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 b6509e4176c337d6f134fd3efc48994e1c81bda2 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 9d9dceaa41e61e04bdb3249262fcc3f5e9eb7947 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 dfdccae74653a9a8d93868ddc2be045659c19e0b 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 c95cf135a39d9cb8f0e1a91e441d74cf8b3467f8 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 f971cc9516e2d00e6abde1daa66bd272f4c8a4ff 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 3998d6ee829eaf28e086a58889dcc4bb082addf0 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 e1b8204490a84485da278b079bbc5d799d57ac2e 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