-
Notifications
You must be signed in to change notification settings - Fork 1.8k
C++: IR'ify cpp/uninitialized-local
and fix FPs
#14704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
QL and test results LGTM. Notably we're not getting any? results where the variable is only uninitialized in some paths now - but given the complaints from users that seems like a reasonable compromise for the time being.
I'd like to have a look at some real world differences, either on DCA (if there's enough data to see) or perhaps through MRVA.
Indeed, since we're now using the "must flow" library we won't have alerts on conditionally assigned variables. It's a bit of a shame, and we have an internal issue for how to bring back such results. |
DCA just came back, and there are plenty of results to look at 😂. I plan on 👀'ing some of them later today. If you're also interested in doing so we can split up the working on a per-project basis @geoffw0. |
Sounds good, which projects would you like me to look at? |
If you take the offenders ( |
1 new result:
124 lost results. I sampled some:
5 new results:
132 lost results:
387 lost results:
In summary:
Other thoughts:
|
Done in 69502d0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. 👍
We've seen a lot of complaints recently about this query being very noisy. This is my attempt at fixing this on a relatively short-term basis. In the future, this query should be made smarter and handle the new missing results.
Commit-by-commit review recommended: