[clang] [Clang] Implement C++26’s P2893R3 ‘Variadic friends’ (PR #101448)

via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 6 09:07:59 PDT 2024


================
@@ -1087,6 +1087,7 @@ void JSONNodeDumper::VisitAccessSpecDecl(const AccessSpecDecl *ASD) {
 void JSONNodeDumper::VisitFriendDecl(const FriendDecl *FD) {
   if (const TypeSourceInfo *T = FD->getFriendType())
     JOS.attribute("type", createQualType(T->getType()));
+  attributeOnlyIfTrue("variadic", FD->isVariadic());
----------------
cor3ntin wrote:

```suggestion
  attributeOnlyIfTrue("isPackExpansion", FD->isVariadic());
```

https://github.com/llvm/llvm-project/pull/101448


More information about the cfe-commits mailing list