================
@@ -947,6 +952,53 @@ emitInfo(const NamespaceDecl *D, const FullComment *FC, 
Location Loc,
   return {std::move(NSI), makeAndInsertIntoParent<const NamespaceInfo 
&>(*NSI)};
 }
 
+static void parseFriends(RecordInfo &RI, const CXXRecordDecl *D) {
+  if (D->hasDefinition() && D->hasFriends())
----------------
ilovepi wrote:

I think if you invert the condition you can use early return to avoid a level 
of nesting. 

https://github.com/llvm/llvm-project/pull/146165
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to