[PATCH] D38954: [Sema] -Wzero-as-null-pointer-constant: don't warn for system macros.

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 16 07:48:59 PDT 2017


lebedev.ri updated this revision to Diff 119159.
lebedev.ri added a comment.

Address @thakis review notes: do make sure that we still warn on `NULL`.
Any other special macros/cases?


Repository:
  rL LLVM

https://reviews.llvm.org/D38954

Files:
  lib/Sema/Sema.cpp
  test/SemaCXX/Inputs/warn-zero-nullptr.h
  test/SemaCXX/warn-zero-nullptr.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38954.119159.patch
Type: text/x-patch
Size: 4343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171016/43abb10a/attachment-0001.bin>


More information about the cfe-commits mailing list