[clang] Support `guarded_by` attribute and related attributes inside C structs and support late parsing them (PR #95455)
Dan Liew via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 8 12:43:48 PDT 2024
================
@@ -29,6 +30,22 @@ struct LOCKABLE Mutex {};
struct Foo {
struct Mutex *mu_;
+ int a_value GUARDED_BY(mu_);
+
+ struct Bar {
+ struct Mutex *other_mu ACQUIRED_AFTER(mu_);
----------------
delcypher wrote:
@pdherbemont Did you add the comment? I can't find it in the diff shown on GitHub
https://github.com/llvm/llvm-project/pull/95455
More information about the cfe-commits
mailing list