[PATCH] D32914: Introduce Wzero-as-null-pointer-constant.

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 5 09:24:29 PDT 2017


thakis closed this revision.
thakis marked 3 inline comments as done.
thakis added a comment.

Thanks! Add one and landed in r302247.



================
Comment at: include/clang/Sema/Sema.h:3760
 
+  /// \brief Warn when implicitly casting 0 to nullptr.
+  void diagnoseZeroToNullptrConversion(CastKind Kind, const Expr *E);
----------------
hans wrote:
> \brief is redudant here I believe and doesn't seem used for the surrounding functions.
diagnoseNullableToNonnullConversion right above has it but the rest doesn't. removed.


https://reviews.llvm.org/D32914





More information about the cfe-commits mailing list