[cfe-commits] patch: make UsingDirective derive from Decl, not NamedDecl
Nick Lewycky
nicholas at mxc.ca
Fri Oct 5 02:21:32 PDT 2012
This patch changes UsingDirectives to be derived from Decl instead of
NamedDecl, and consequently removes the CXXUsingDirective DeclarationName.
The way using directives are stored with this patch is to have a single
pointer on each UsingDirectiveDecl that points to the previous
declaration, and a pointer on TranslationUnit and Namespace DeclContexts
that point to the last one in that chain. We don't need such pointers on
other DeclContexts because they either can't hold using-directives or
the lookup will be handled by Scope.
Please review!
Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: usingdirective-noname-1.patch
Type: text/x-diff
Size: 33830 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121005/52c2eb78/attachment.patch>
More information about the cfe-commits
mailing list