[PATCH] D157684: [clang][ASTImporter] Repeated friend templates are partially imported
Ding Fei via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 23 05:39:05 PDT 2023
danix800 added inline comments.
================
Comment at: clang/lib/AST/ASTImporter.cpp:4105
- T TypeOrDecl = GetCanTypeOrDecl(FD);
-
- for (const FriendDecl *FoundFriend : RD->friends()) {
+ for (FriendDecl *FoundFriend : RD->friends()) {
if (FoundFriend == FD) {
----------------
balazske wrote:
> It is better if this is `const`.
As API requires this decl cannot be const.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157684/new/
https://reviews.llvm.org/D157684
More information about the cfe-commits
mailing list