Skip to content

Documentation: Added suffix section [skip ci]#8675

Draft
wjakobsson wants to merge 5 commits into
cppcheck-opensource:mainfrom
wjakobsson:positive-constexpr
Draft

Documentation: Added suffix section [skip ci]#8675
wjakobsson wants to merge 5 commits into
cppcheck-opensource:mainfrom
wjakobsson:positive-constexpr

Conversation

@wjakobsson

Copy link
Copy Markdown
Collaborator

No description provided.

@wjakobsson wjakobsson changed the title Documentation: Added suffix section Documentation: Added suffix section [skip ci] Jun 26, 2026
Comment thread man/manual-premium.md Outdated

**-positive-constexpr**

the value of the expression is a non-negative constant.

@danmar danmar Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm.. we only write this suffix when it's technically safe to suppress the warning. I.e. for 10.3 the constant value must fit in the destination type.

@danmar danmar left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spontanously feel that the suffixes should be added in the "Cppcheck Premium" chapter where we discuss the premium coding standards..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants