[clang] Thread Safety Analysis: Support attributes on function pointers (PR #191187)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 06:19:13 PDT 2026
================
@@ -436,10 +436,24 @@ static void checkAttrArgsAreCapabilityObjs(Sema &S, Decl *D,
}
}
+/// Checks that thread-safety attributes on variables or fields apply only to
+/// function pointer types.
----------------
AaronBallman wrote:
Btw, I expect this will be somewhat frustrating in C++; I think users would reasonably expect this to work through smart pointers, `std::function`, etc.
https://github.com/llvm/llvm-project/pull/191187
More information about the cfe-commits
mailing list