Skip to content

Remove dead branch in simplecpp::Macro::expandHashHash()#664

Merged
firewave merged 1 commit into
cppcheck-opensource:masterfrom
pfultz2:patch-1
Jun 23, 2026
Merged

Remove dead branch in simplecpp::Macro::expandHashHash()#664
firewave merged 1 commit into
cppcheck-opensource:masterfrom
pfultz2:patch-1

Conversation

@pfultz2

@pfultz2 pfultz2 commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

This fixes knownConditionTrueFalse warning. Because canBeConcatenatedStringOrChar is true and unexpectedA is equal to ... && !canBeConcatenatedStringOrChar, this condition is always false.

This fixes `knownConditionTrueFalse` warning.
@firewave

Copy link
Copy Markdown
Collaborator

From cppcheck-opensource/cppcheck#8669.

@firewave

Copy link
Copy Markdown
Collaborator

This shows we could probably improve the test coverage of this function by fuzzing for the throwing conditions.

@firewave firewave changed the title Remove dead branch Remove dead branch in simplecpp::Macro::expandHashHash() Jun 23, 2026
@firewave firewave merged commit 3b3b30e into cppcheck-opensource:master Jun 23, 2026
25 checks passed
@pfultz2 pfultz2 deleted the patch-1 branch June 23, 2026 21:16
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