[clang] Thread Safety Analysis: Support attributes on function pointers (PR #191187)
Aaron Puchert via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 19 15:39:59 PDT 2026
================
@@ -4097,7 +4097,7 @@ def AcquireCapability : InheritableAttr {
Clang<"acquire_shared_capability", 0>,
GNU<"exclusive_lock_function">,
GNU<"shared_lock_function">];
- let Subjects = SubjectList<[Function, ParmVar]>;
+ let Subjects = SubjectList<[Function, ParmVar, NonParmVar, Field]>;
----------------
aaronpuchert wrote:
Isn't `ParmVar`, `NonParmVar` just a complicated way to say `Var`?
https://github.com/llvm/llvm-project/pull/191187
More information about the cfe-commits
mailing list