================
@@ -6970,6 +6970,18 @@ static void checkAttributesAfterMerging(Sema &S, 
NamedDecl &ND) {
         }
       }
     }
+
+    for (unsigned int I = 0; I < FD->getNumParams(); ++I) {
----------------
usx95 wrote:

We would also want to diagnose this for member functions where lifetimebound is 
not attached to a param but to the function type.
```cpp
struct S {
  void member() [[clang::lifetimebound]];
}
```

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

Reply via email to