From 2aab41ea3096fe1ff30c4e38607261a8bc67645c 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 9175ef47c8a..a25586df951 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 05bb8d4a197cce5b4cdbf53465f8063087c3dc91 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 c4fbc4c533cb9ade3cf63763c026f09f2f74f8d8 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 a25586df951..2ec49acbe31 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. @@ -1376,6 +1368,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 34ba4b5da753fa01670b0f8c32e47e9ef1680e26 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 2ec49acbe31..891d93400cd 100644 --- a/man/manual-premium.md +++ b/man/manual-premium.md @@ -1370,7 +1370,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 2cababd004bd5bc4dda7a3b604bc55f387b512e0 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 891d93400cd..b1db40a4d87 100644 --- a/man/manual-premium.md +++ b/man/manual-premium.md @@ -1370,11 +1370,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 a051bb520f3307676997c3bb17c7063b3b8e968a 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 b1db40a4d87..f80b9c12597 100644 --- a/man/manual-premium.md +++ b/man/manual-premium.md @@ -1376,6 +1376,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 3ce84f7f4646ebd53838f49ed718955c0ae78cc2 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 cfd8266d94dadb2b0a937f260db6a3e7e2428df9 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 f80b9c12597..a3f93648c30 100644 --- a/man/manual-premium.md +++ b/man/manual-premium.md @@ -1374,12 +1374,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