[PATCH] D39301: Ignore implicity casts for zero-as-null-pointer-constant warning

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 25 11:22:26 PDT 2017


lebedev.ri added inline comments.


================
Comment at: test/SemaCXX/warn-zero-nullptr.cpp:29
+
+// Shouldn't warn.
+struct pr34362 { operator int*() { return nullptr; } };
----------------
Maybe wrap into a `namespace PR34362 {}`


https://reviews.llvm.org/D39301





More information about the cfe-commits mailing list