[PATCH] D71020: [ASTImporter] Friend class decl should not be visible in its context
Aleksei Sidorin via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Dec 7 09:27:37 PST 2019
a_sidorin added a comment.
Hi Gabor,
This patch looks mostly good to me. Thanks!
================
Comment at: clang/lib/AST/ASTImporter.cpp:334
+ FromDC->lookup(FromNamed->getDeclName());
+ if (std::find(FromLookup.begin(), FromLookup.end(), FromNamed) !=
+ FromLookup.end())
----------------
llvm::is_contained?
================
Comment at: clang/unittests/AST/ASTImporterTest.cpp:258
+static const RecordDecl *getRecordDeclOfFriend(FriendDecl *FD) {
+ QualType Ty = FD->getFriendType()->getType();
+ if (auto *Inner = dyn_cast<TypedefType>(Ty.getTypePtr())) {
----------------
Why don't we use getCanonicalType() anymore?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71020/new/
https://reviews.llvm.org/D71020
More information about the cfe-commits
mailing list