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

Douglas Gregor dgregor at apple.com
Fri Jul 1 18:08:30 PDT 2011


On Jul 1, 2011, at 6:06 PM, Jordy Rose wrote:

> Just to be silly, if we're in an ObjC context and 'NULL' is defined, but 'nil' isn't, is 'NULL' preferable to 0? Or is that a contrived situation we don't care about?

It feels contrived to me; 'nil' is generally available in any real ObjC code.

> (Also, do we care about 'Nil', the null value for ObjC 'Class' type, and 'false' for C99 _Bool?)


I, personally, don't care much about those particular cases, but we could hack them in.

	- Doug



More information about the cfe-commits mailing list