OSDN Git Service

[ASTImporter] Corrected import of repeated friend declarations.
authorBalázs Kéri <1.int32@gmail.com>
Tue, 7 Jul 2020 12:21:18 +0000 (14:21 +0200)
committerBalázs Kéri <1.int32@gmail.com>
Tue, 7 Jul 2020 14:24:24 +0000 (16:24 +0200)
commit85f5d1261c9a3f0abc4ae370005a1127174f2ce1
treec6b4210f746d3407655117b640e7dc633bff5dcd
parentc5348aecd7723e7aa7b18406d0c97724c0659f34
[ASTImporter] Corrected import of repeated friend declarations.

Summary:
Import declarations in correct order if a class contains
multiple redundant friend (type or decl) declarations.
If the order is incorrect this could cause false structural
equivalences and wrong declaration chains after import.

Reviewers: a.sidorin, shafik, a_sidorin

Reviewed By: shafik

Subscribers: dkrupp, Szelethus, gamesh411, teemperor, martong, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D75740
clang/lib/AST/ASTImporter.cpp
clang/unittests/AST/ASTImporterTest.cpp
clang/unittests/AST/StructuralEquivalenceTest.cpp