From 215ad01602eaf4ed7968ae9d6d0520cc62feb1b7 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/5] 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 0a57b86c6823eff32ee318c9a8a116005210d6ea 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/5] [skip ci] From 064198b64be6b85c37477702b81e066c06701e96 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/5] 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 f570eacf1da4187630569086afcf6c7c7970f483 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/5] 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 bfd71f2599777c9f7d38a55950bf65e817c02e71 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/5] 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