This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Simplify delete null ptr check
ClosedPublic

Authored by steveire on Feb 5 2021, 6:42 AM.

Details

Summary

Because it no longer relies on finding implicit casts, this check now
works on templates which are not instantiated in the translation unit.

Diff Detail

Event Timeline

steveire created this revision.Feb 5 2021, 6:42 AM
steveire requested review of this revision.Feb 5 2021, 6:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 5 2021, 6:42 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript

Seems that your test cases are failing on windows, I'm guessing this is a MSVC template compatibility issue.
Probably need to add -fno-delayed-template-parsing to the clang driver args (after -- --).

This revision is now accepted and ready to land.Feb 15 2021, 1:43 PM
This revision was automatically updated to reflect the committed changes.