[cfe-commits] [PATCH] Implement C++11 alias declarations
Richard Smith
richard at metafoo.co.uk
Thu Apr 14 16:18:38 PDT 2011
Hi,
The attached patch implements C++11's (non-template) alias declarations:
using A = int;
The approach I've taken is to add two new classes to the Decl hierarchy:
TypedefNameDecl and TypeAliasDecl. TypedefNameDecl is a base class for
TypedefDecl and TypeAliasDecl; most code which previously operated on
TypedefDecl's should now use TypedefNameDecl. TypedefType is unchanged,
except that it now refers to a TypedefNameDecl rather than a TypedefDecl.
Please review!
Thanks,
Richard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-alias-declarations.diff
Type: text/x-patch
Size: 101106 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20110415/a70162f2/attachment.bin>
More information about the cfe-commits
mailing list