[clang-tidy] Simplify delete null ptr check
authorStephen Kelly <steveire@gmail.com>
Tue, 29 Dec 2020 13:44:18 +0000 (13:44 +0000)
committerStephen Kelly <steveire@gmail.com>
Wed, 17 Feb 2021 10:18:36 +0000 (10:18 +0000)
commitd20961c6575c00fc998d901ded78c1a41edd61b1
treef01c7b181f37ff97248918a7b2053ce5c34c4d41
parent5a641cf194d493752edade659f1e9f06294f4f9f
[clang-tidy] Simplify delete null ptr check

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

Differential Revision: https://reviews.llvm.org/D96138
clang-tools-extra/clang-tidy/readability/DeleteNullPointerCheck.cpp
clang-tools-extra/clang-tidy/readability/DeleteNullPointerCheck.h
clang-tools-extra/test/clang-tidy/checkers/readability-delete-null-pointer.cpp