[cfe-dev] Proposal to simplify ObjC Type AST's

Fariborz Jahanian fjahanian at apple.com
Tue May 19 15:42:29 PDT 2009


On May 19, 2009, at 1:30 PM, Eli Friedman wrote:

> On Tue, May 19, 2009 at 1:18 PM, Fariborz Jahanian <fjahanian at apple.com 
> > wrote:
>> Yes. There is still a question of what to do when 'id'/'Class' 's
>> declaration seen in objc.h. Since you going to
>> treat them as first-class types. Then one possible solution is to  
>> #ifdef
>> them out for clang as its has outlived its
>> usefulness.
>
> We can just continue to treat them magically; we already have code for
> doing that (see Sema::MergeTypeDefDecl).

In the current scheme of things, both old and new 'id' s are typedefs.  
I am not sure
how we want to treat a built-in type being redeclared as a typedef;  
other than
ignoring one in favor of the other.

- Fariborz



>
>
> -Eli




More information about the cfe-dev mailing list