Skip to content

ValueFlow: Improve the starting point for uninitialized variables to find more uninitialized usages after many conditionals#4930

Merged
firewave merged 3 commits intocppcheck-opensource:mainfrom
pfultz2:valueflow-uninit-start-tok
Apr 4, 2023
Merged

ValueFlow: Improve the starting point for uninitialized variables to find more uninitialized usages after many conditionals#4930
firewave merged 3 commits intocppcheck-opensource:mainfrom
pfultz2:valueflow-uninit-start-tok

Conversation

@pfultz2
Copy link
Copy Markdown
Contributor

@pfultz2 pfultz2 commented Apr 3, 2023

Some test cases where the uninitialized variable is used in dead code have become a TODO. The test cases dont seem to be good examples of real-world code though. I think this can be addressed in a future PR.

@pfultz2
Copy link
Copy Markdown
Contributor Author

pfultz2 commented Apr 4, 2023

@danmar @orbitcowboy @chrchr-github Any feedback?

Copy link
Copy Markdown
Collaborator

@chrchr-github chrchr-github left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I agree that those TODO test cases are odd.
There have been numerous changes already since the last release, so it becomes more difficult to assess the impact in daca,

@firewave firewave merged commit 115f17c into cppcheck-opensource:main Apr 4, 2023
@pfultz2 pfultz2 deleted the valueflow-uninit-start-tok branch April 4, 2023 19:58
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