[ASTImporter] Added visibility context check for CXXRecordDecl.
authorBalazs Keri <1.int32@gmail.com>
Mon, 27 May 2019 09:36:00 +0000 (09:36 +0000)
committerBalazs Keri <1.int32@gmail.com>
Mon, 27 May 2019 09:36:00 +0000 (09:36 +0000)
commitc8272195cd2d02cb4d626a3f64144a916bd81d95
treebbac2a9a1eaafd0b1c989802b09c58a193eb352f
parent0f40585d2d532718a89972bf22ff7743c1d512bc
[ASTImporter] Added visibility context check for CXXRecordDecl.

Summary:
ASTImporter makes now difference between classes with same name in different
translation units if these are not visible outside. These classes are not linked
into one decl chain.

Reviewers: martong, a.sidorin, shafik

Reviewed By: shafik

Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, cfe-commits

Tags: #clang

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

llvm-svn: 361752
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterVisibilityTest.cpp