[cfe-dev] Determining if ObjCIvarDecl is in multi-declaration

Emerson Murphy-Hill emerson at apple.com
Thu Apr 24 13:19:36 PDT 2008


On Apr 23, 2008, at 10:56 PM, Chris Lattner wrote:

> Okay, so you need more information, or some amount of fuzziness to  
> do this.  Specifically, if you have:
>
>
> int *X, ***Y[10];
>
> Even if you know that X/Y are multi-declaration, you'll have to have  
> some way of handling the *'s and the array suffix.  Because types  
> are unique'd, they don't have location information.  Handling this  
> sort of thing will require some amount of fuzzy editting: could  
> fuzzy editting be used to scan for the comma also?
>
> -Chris

I'm not sure what you mean by fuzzy editing.  I'll try using the lexer  
to determine if there is a comma between the type at the semicolon.

Thanks,

e



More information about the cfe-dev mailing list