Skip to content

TestCmdlineParser: resolved bogus TODO asserts#8387

Merged
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
firewave:testcmd-x
Apr 1, 2026
Merged

TestCmdlineParser: resolved bogus TODO asserts#8387
chrchr-github merged 1 commit intocppcheck-opensource:mainfrom
firewave:testcmd-x

Conversation

@firewave
Copy link
Copy Markdown
Collaborator

No description provided.

@sonarqubecloud
Copy link
Copy Markdown

@chrchr-github
Copy link
Copy Markdown
Collaborator

So we don't ever want to support --suppress=uninitvar,noConstructor? Intuitively, that's how I would expect this option to work...

@firewave
Copy link
Copy Markdown
Collaborator Author

It takes a single suppression line. Just using the ID is working because all other fields are optional in that format. So it is different from --enable.

@chrchr-github
Copy link
Copy Markdown
Collaborator

It takes a single suppression line. Just using the ID is working because all other fields are optional in that format. So it is different from --enable.

You mean we would have to support --suppress=uninitvar:abc.cpp:123,noConstructor:def.cpp:456 as well?

@firewave
Copy link
Copy Markdown
Collaborator Author

firewave commented Apr 1, 2026

You mean we would have to support --suppress=uninitvar:abc.cpp:123,noConstructor:def.cpp:456 as well?

That would be implied. We could just split it by ,. But as this hasn't been supported in probably more than a decade and no feature request for this coming up so far (as far as I can tell). I do not see any reason to support it. You cannot specify more than one suppression per line in a file either so it would be consistent.

@chrchr-github chrchr-github merged commit db1c005 into cppcheck-opensource:main Apr 1, 2026
72 checks passed
@firewave firewave deleted the testcmd-x branch April 1, 2026 13:36
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