martong added inline comments.
================ Comment at: clang/lib/AST/ASTImporter.cpp:334 + FromDC->lookup(FromNamed->getDeclName()); + if (std::find(FromLookup.begin(), FromLookup.end(), FromNamed) != + FromLookup.end()) ---------------- a_sidorin wrote: > llvm::is_contained? Thanks! Good catch. ================ 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())) { ---------------- a_sidorin wrote: > Why don't we use getCanonicalType() anymore? Thanks, that is a very good catch. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D71020/new/ https://reviews.llvm.org/D71020 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits