FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove dead branch in `simplecpp::Macro::expandHashHash()` by pfultz2 · Pull Request #664 · cppcheck-opensource/simplecpp · GitHub

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 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.

Copy link
Copy Markdown
Collaborator

From cppcheck-opensource/cppcheck#8669.

Copy link
Copy Markdown
Collaborator

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

firewave changed the title Remove dead branch Remove dead branch in simplecpp::Macro::expandHashHash() Jun 23, 2026
firewave merged commit 3b3b30e into cppcheck-opensource:master Jun 23, 2026
25 checks passed
pfultz2 deleted the patch-1 branch June 23, 2026 21:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL