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

Jonathan Sauer jonathan.sauer at gmx.de
Fri Jul 1 23:53:28 PDT 2011


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-dev mailing list