[clang] Support [[guarded_by(mutex)]] attribute inside C struct (PR #94216)

Pierre d'Herbemont via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 7 02:21:44 PDT 2024


================
@@ -29,6 +29,13 @@ struct LOCKABLE Mutex {};
 
 struct Foo {
   struct Mutex *mu_;
+  int  a_value GUARDED_BY(mu_);
----------------
pdherbemont wrote:

done!

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


More information about the cfe-commits mailing list