[all-commits] [llvm/llvm-project] d20961: [clang-tidy] Simplify delete null ptr check

Stephen Kelly via All-commits all-commits at lists.llvm.org
Wed Feb 17 02:19:20 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d20961c6575c00fc998d901ded78c1a41edd61b1
      https://github.com/llvm/llvm-project/commit/d20961c6575c00fc998d901ded78c1a41edd61b1
  Author: Stephen Kelly <steveire at gmail.com>
  Date:   2021-02-17 (Wed, 17 Feb 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/DeleteNullPointerCheck.cpp
    M clang-tools-extra/clang-tidy/readability/DeleteNullPointerCheck.h
    M clang-tools-extra/test/clang-tidy/checkers/readability-delete-null-pointer.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list