[cfe-dev] Objective-C @defs support

Chris Lattner clattner at apple.com
Sat Jun 21 12:40:24 PDT 2008


On Jun 21, 2008, at 12:31 PM, David Chisnall wrote:
>> +++ lib/CodeGen/CodeGenTypes.cpp	(working copy)
>> @@ -149,7 +149,7 @@
>>
>> What is this patch doing?  It seems unrelated.
>
> Hmm, in fact it might be.  Ignore it for now (or commit it  
> separately).  It's just a few cleanups of the CodeGenTypes stuff.

Ok, I committed your patch here, thanks!
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080616/006205.html

>
>
> defs.m is the file I am using to test this.  It outputs two lines in  
> the form %d: %d.  If both numbers on each line match then it  
> worked.  Compile with ccc defs.m -lobjc.  Advice on how to turn this  
> into an automated clang test welcome...

The clang regtest suite isn't the place to test all possible details  
of the front-end, so I just wanted a test that verifies parser/sema  
won't regress on this feature.  Your example does nicely, because if  
the @defs don't get added correctly, the field access turns into an  
error.

Thanks David,

-Chris



More information about the cfe-dev mailing list