[cfe-commits] [PATCH] Implement C++11 alias declarations
John McCall
rjmccall at apple.com
Thu Apr 14 16:48:19 PDT 2011
On Apr 14, 2011, at 4:18 PM, Richard Smith wrote:
> 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.
Very impressive! It looks fine to me, go ahead.
John.
More information about the cfe-commits
mailing list