[clang] [C++20][Modules] Load function body from the module that gives canonical decl (PR #111992)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 21 00:46:20 PST 2025
================
@@ -798,6 +798,17 @@ void ASTDeclWriter::VisitFunctionDecl(FunctionDecl *D) {
}
}
+ if (D->getFriendObjectKind()) {
----------------
hokein wrote:
As stated in https://github.com/llvm/llvm-project/issues/122493#issuecomment-2602473058, this is intended. It would be helpful to include comments explaining why this logic is applied exclusively to friend objects.
https://github.com/llvm/llvm-project/pull/111992
More information about the cfe-commits
mailing list