[cfe-dev] __func__ should be of type char[], not char*

fjahanian fjahanian at apple.com
Mon Jan 14 09:45:03 PST 2008


On Jan 14, 2008, at 9:36 AM, Chris Lattner wrote:

>>> 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

If it is an AST already, this is great. We need to have an array type  
of TBD length. So, can fool type comparison of otherwise compatible  
arrays. But let's talk about this later.

- Fariborz


> Fariborz,
>
> -Chris




More information about the cfe-dev mailing list