[ASTImporter] Fix missing implict CXXRecordDecl
authorGabor Marton <martongabesz@gmail.com>
Thu, 17 May 2018 09:46:07 +0000 (09:46 +0000)
committerGabor Marton <martongabesz@gmail.com>
Thu, 17 May 2018 09:46:07 +0000 (09:46 +0000)
commitde8bf2678b054d6c4eee7db2afacb8ec9e795fcc
tree12881cf282355436080af1c7941e83bd5764f63c
parent6e89528c557fe7e41b2c4946d75d1e5b36f62fd5
[ASTImporter] Fix missing implict CXXRecordDecl

Summary:
Implicit CXXRecordDecl is not added to its DeclContext during import, but in
the original AST it is. This patch fixes this.

Reviewers: xazax.hun, a.sidorin, szepet

Subscribers: rnkovacs, dkrupp, cfe-commits

Differential Revision: https://reviews.llvm.org/D46958

llvm-svn: 332588
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp