Skip to content

ValueFlow: Assume constant is nonzero when its negated#4041

Merged
orbitcowboy merged 3 commits into
cppcheck-opensource:mainfrom
pfultz2:valueflow-negat-constant
Apr 23, 2022
Merged

ValueFlow: Assume constant is nonzero when its negated#4041
orbitcowboy merged 3 commits into
cppcheck-opensource:mainfrom
pfultz2:valueflow-negat-constant

Conversation

@pfultz2
Copy link
Copy Markdown
Contributor

@pfultz2 pfultz2 commented Apr 23, 2022

This matches the assumption done in CheckUninitVar::checkScopeForVariable data flow analysis.

@orbitcowboy orbitcowboy merged commit 5d55622 into cppcheck-opensource:main Apr 23, 2022
@pfultz2 pfultz2 deleted the valueflow-negat-constant branch April 23, 2022 04:34
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