[ASTImporter] Fix import of unnamed structs
authorGabor Marton <martongabesz@gmail.com>
Tue, 17 Jul 2018 12:06:36 +0000 (12:06 +0000)
committerGabor Marton <martongabesz@gmail.com>
Tue, 17 Jul 2018 12:06:36 +0000 (12:06 +0000)
commitf086fa8443bf3676cd31e2bcd6a97691edb01007
tree5646895fa202fde1ed67465cd1b2726f6561cd11
parentda4302ce0d4652f36b966d4dfabb1556c53bf5ce
[ASTImporter] Fix import of unnamed structs

Summary:
D48773 simplified ASTImporter nicely, but it introduced a new error: Unnamed
structs are not imported correctly, if they appear in a recursive context.
This patch provides a fix for structural equivalency.

Reviewers: a.sidorin, a_sidorin, balazske, gerazo

Subscribers: rnkovacs, dkrupp, cfe-commits

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

llvm-svn: 337267
clang/lib/AST/ASTStructuralEquivalence.cpp
clang/unittests/AST/ASTImporterTest.cpp
clang/unittests/AST/StructuralEquivalenceTest.cpp