[cfe-dev] Improving source type info for typeof nodes.

Enea Zaffanella zaffanella at cs.unipr.it
Wed Jan 13 09:47:45 CST 2010


Hello.

Please find attached a patch for improving the type source info 
available for TypeOfExprType and TypeOfType nodes.

The augmented TypeOf(Expr)TypeLoc nodes provide info about:
   - the location of the typeof keyword;
   - the locations of the left&right parentheses (may be invalid);
   - the source range for the whole typeof construct;
   - source type info for the underlying type (for TypeOfType nodes).

The patch passes all clang tests.

Cheers,
Enea Zaffanella.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Typeof-TypeLoc.patch
Type: text/x-patch
Size: 12229 bytes
Desc: not available
Url : http://lists.cs.uiuc.edu/pipermail/cfe-dev/attachments/20100113/fb1e6290/attachment.bin 


More information about the cfe-dev mailing list