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

Dan Liew via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 6 11:52:51 PDT 2024


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

@pdherbemont I think you should be checking **both** late and regular parsing for all attributes that you're adding support for.

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


More information about the cfe-commits mailing list