[cfe-commits] r140650 - in /cfe/trunk: include/clang/AST/ lib/ARCMigrate/ lib/AST/ lib/Frontend/ lib/Rewrite/ lib/Sema/ test/Index/ test/SemaObjC/ tools/libclang/

Douglas Gregor dgregor at apple.com
Tue Sep 27 16:16:32 PDT 2011


On Sep 27, 2011, at 3:48 PM, Eli Friedman wrote:

> On Tue, Sep 27, 2011 at 3:38 PM, Douglas Gregor <dgregor at apple.com> wrote:
>> Author: dgregor
>> Date: Tue Sep 27 17:38:19 2011
>> New Revision: 140650
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=140650&view=rev
>> Log:
>> When 'bool' is not a built-in type but is defined as a macro, print
>> 'bool' rather than '_Bool' within types, to make things a bit more
>> readable. Fixes <rdar://problem/10063263>.
> 
> Is it actually safe to assume that bool is defined to _Bool?  It's
> probably not hard to find code that has constructs like "#define bool
> int"...

*sigh*

You are right, of course. I'm working on threading this through.

	- Doug



More information about the cfe-commits mailing list