[clang] [clang][ThreadSafety] Enable late parse for all capabilities, under the experimental flag (PR #212615)

Jameson Nash via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 24 07:32:08 PDT 2026


================
@@ -7630,6 +7646,18 @@ void Parser::ParseParameterDeclarationClause(
     AllowImplicitTypename = ImplicitTypenameContext::Yes;
   }
 
+  // A capability attribute on a parameter may name another parameter of the
+  // same prototype, declared later:
+  //
+  //   int kref_put_lock(struct kref *kref,
----------------
vtjnash wrote:

Did you want this removed from the ReleaseNotes too, or is that helpful to show the real-world example there?

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


More information about the cfe-commits mailing list