[cfe-commits] r134302 - /cfe/trunk/lib/Sema/AnalysisBasedWarnings.cpp

Jonathan Sauer jonathan.sauer at gmx.de
Sat Jul 2 00:12:17 PDT 2011


(sorry, I initially sent it to the wrong list)

Am 02.07.2011 um 02:59 schrieb Douglas Gregor:

> When producing -Wuninitialized Fix-Its for pointers, prefer " = NULL"
> over "= 0". Fixes <rdar://problem/9714386>.

What about when in C++0x mode, suggest "nullptr" (which is always defined) instead of "NULL"?
nullptr is C++0x's safer alternative to NULL, so it would make sense to recommend it.


Jonathan



More information about the cfe-commits mailing list