]> granicus.if.org Git - clang/commit
[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)
commit24e7a5fe16c20695df235a84a6dfe19f09364c5b
treec1e89988c9394621e5df9efa555d2a66de8576f7
parentd0d3baaed339a76574fdfecc2f756e568bf58f53
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337267 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTStructuralEquivalence.cpp
unittests/AST/ASTImporterTest.cpp
unittests/AST/StructuralEquivalenceTest.cpp