-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Some fixes #3070
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
Some fixes #3070
Conversation
f8e6767
to
44360c8
Compare
Hi @cyyever, LGTM and I want to merge this asap (based on @Skylion007's approval and my own), but could you please add a hint to the PR description why you applied this fix? Did some tool find it (like clang-tidy)? Sanitizer? Or just something you noticed? (All of these are good reasons IMO.) |
BTW: The CI failure is a flake that I've seen several times before and we can safely ignore. |
@Skylion007 @rwgk I have committed some more changes. Most of the tests run successfully, but please review the code. |
Before we look at the details, could you please explain why you started working on the changes, and how you picked out the places you changed? |
FWIW: The CI failures are unrelated flakes I've seen several times before. |
@rwgk In order to achieve better code quality, I used various coda analyzers to scan the source code and checked each warning. The used tools were mentioned above. Also because pytorch and some other projects use pybind and I need to make sure pybind being as stable as possible |
That sounds good. I'm glad they didn't find more! Could you please summarize in the description what those analyzers were, ideally with version numbers? That way we can reason about the changes in the future. Also, what do you think how feasible it is to integrate them into GitHub actions, so that we stay healthy in the future. (That would be separate PRs.) |
@rwgk Looks like the Clang-Tidy check I was going to turn on, cppcoreguidelines-init-variables, . Not sure about that last diff though. |
Fix some code problems found by PVS-Studio and clang-tidy analyzers.