[clang] [Sema] Enforce parameter match for ownership_returns attribute (PR #192339)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 27 11:56:22 PDT 2026


================
@@ -1526,6 +1526,20 @@ static void handleOwnershipAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
     Module = &S.PP.getIdentifierTable().get(ModuleName);
   }
 
+  // Check if the new ownership_returns attribute does not contain 
+  // an index, but previous attributes do
----------------
AaronBallman wrote:

```suggestion
  // an index, but previous attributes do.
```

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


More information about the cfe-commits mailing list