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

Enea Zaffanella zaffanella at cs.unipr.it
Wed Jan 13 07:47:45 PST 2010


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.

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.llvm.org/pipermail/cfe-dev/attachments/20100113/fb1e6290/attachment.bin>

More information about the cfe-dev mailing list