This is an archive of the discontinued LLVM Phabricator instance.

DeleteNullPointerCheck now deletes until the end brace of the condition
AcceptedPublic

Authored by J-Camilleri on May 13 2019, 9:50 AM.

Details

Reviewers
madsravn
alexfh
Summary

Bug Fix for #35811

Event Timeline

J-Camilleri created this revision.May 13 2019, 9:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 13 2019, 9:50 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Besides my one comment this looks good to me.

clang-tools-extra/test/clang-tidy/readability-delete-null-pointer.cpp
18

Would you mind creating a new test instead of changing the existing one? Removing tests could create another whole for a bug to fall through.

Added a new unit test and restored the modified test as it was.

madsravn accepted this revision.May 13 2019, 11:45 PM

Looks good to me :)

This revision is now accepted and ready to land.May 13 2019, 11:45 PM

Looks good to me :)

Thanks for the review and suggestion, who should I contact now in order to push the patch?

Looks good to me :)

Thanks for the review and suggestion, who should I contact now in order to push the patch?

I asked around and I was told that we should just leave a comment and then somebody will come around. I was also told that after a few patches you can obtain commit access if you want to push stuff yourself.

someone please commit this.