[PATCH] D32751: [ASTImporter] Support new kinds of declarations (mostly Using*)

Aleksei Sidorin via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 2 09:27:14 PDT 2017


a.sidorin created this revision.
Herald added subscribers: rengolin, aemerson.

Support new  AST nodes:

- UnresolvedUsingType
- EmptyDecl
- NamespaceAliasDecl
- UsingDecl
- UsingShadowDecl
- UsingDirectiveDecl
- UnresolvedUsingValueDecl
- UnresolvedUsingTypenameDecl

Refactor error handling in ImportTemplateArgumentLoc() method.
Add a test for inline namespaces.

Please take a look at FIXMEs I left in some places where I'm not sure that I have chosen a correct solution.
Also, I have some doubts for duplicating NamespaceAliasDecls. I found presence of such decls harmless but maybe I'm not correct here. I left NOTE comments both in the patch and in the tests for it.


https://reviews.llvm.org/D32751

Files:
  lib/AST/ASTImporter.cpp
  test/ASTMerge/namespace/Inputs/namespace1.cpp
  test/ASTMerge/namespace/Inputs/namespace2.cpp
  test/ASTMerge/namespace/test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32751.97460.patch
Type: text/x-patch
Size: 18316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170502/b23f150f/attachment-0001.bin>


More information about the cfe-commits mailing list