[cfe-dev] __func__ should be of type char[], not char*
Chris Lattner
clattner at apple.com
Mon Jan 14 09:36:58 PST 2008
>> If so, this is close to the right patch I think:
>
> Yes. As you pointed out, 'length' of array type is the problem. This
> is not a feature that I have seen used in objective-c. But
> nevertheless....
> Either length of array should be ASTized or the entire macro should
> be represented by an 'AST'. This of course has consequences in type
> matching, sizeof, etc. down the road. I will look at this later on.
It's not a macro, it's a 'predefined identifier' :). It already is
represented explicitly in the AST, but we need to know it's type for
the AST node. Thanks Fariborz,
-Chris
More information about the cfe-dev
mailing list