[cfe-dev] Objective-C @defs support
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!
> 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
More information about the cfe-dev