[all-commits] [llvm/llvm-project] bc5b7e: recommit: [ASTImporter] Friend class decl should n...
Gabor Marton via All-commits
all-commits at lists.llvm.org
Wed Dec 18 02:57:47 PST 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: bc5b7e21e32b23603f4d6148adeb88cd34dd287e
https://github.com/llvm/llvm-project/commit/bc5b7e21e32b23603f4d6148adeb88cd34dd287e
Author: Gabor Marton <gabor.marton at ericsson.com>
Date: 2019-12-18 (Wed, 18 Dec 2019)
Changed paths:
M clang/lib/AST/ASTImporter.cpp
M clang/unittests/AST/ASTImporterTest.cpp
Log Message:
-----------
recommit: [ASTImporter] Friend class decl should not be visible in its context
Summary:
In the past we had to use DeclContext::makeDeclVisibleInContext to make
friend declarations available for subsequent lookup calls and this way
we could chain (redecl) the structurally equivalent decls.
By doing this we created an AST that improperly made declarations
visible in some contexts, so the AST was malformed.
Since we use the importer specific lookup this is no longer necessary,
because with that we can find every previous nodes.
Reviewers: balazske, a_sidorin, a.sidorin, shafik
Subscribers: rnkovacs, dkrupp, Szelethus, gamesh411, teemperor, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D71020
More information about the All-commits
mailing list