Skip to content

Fix 13750: false negative: knownConditionTrueFalse/identicalConditionAfterEarlyExit#7430

Merged
chrchr-github merged 4 commits intocppcheck-opensource:mainfrom
pfultz2:valueflow-traverse-condition-match
Apr 12, 2025
Merged

Fix 13750: false negative: knownConditionTrueFalse/identicalConditionAfterEarlyExit#7430
chrchr-github merged 4 commits intocppcheck-opensource:mainfrom
pfultz2:valueflow-traverse-condition-match

Conversation

@pfultz2
Copy link
Copy Markdown
Contributor

@pfultz2 pfultz2 commented Apr 4, 2025

No description provided.

@pfultz2
Copy link
Copy Markdown
Contributor Author

pfultz2 commented Apr 12, 2025

@firewave @chrchr-github Fixed the tidy issues.

@chrchr-github chrchr-github merged commit 11575d8 into cppcheck-opensource:main Apr 12, 2025
53 checks passed
Comment thread test/testvalueflow.cpp

code = "bool f(bool b1, bool b2) {\n"
" if (b1 && b2)\n"
" return;\n"
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.

Nit: we should return a value here, e.g. return true;

chrchr-github pushed a commit to chrchr-github/cppcheck that referenced this pull request Apr 13, 2025
@pfultz2 pfultz2 deleted the valueflow-traverse-condition-match branch April 13, 2025 15:05
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.

3 participants