]> granicus.if.org Git - clang/commit
[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)
commit6c41f8d5a6018d25b91fa0420c4325b0d85f0743
treefa87af540c9cdbafcd7be2e78650507eb5d9e3b1
parent6fddf7789c74ae74d695dd571024915ad319db1b
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361752 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTImporter.cpp
unittests/AST/ASTImporterVisibilityTest.cpp