[clang] Thread Safety Analysis: Support attributes on function pointers (PR #191187)
Marco Elver via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 29 06:54:17 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.
----------------
melver wrote:
As mentioned elsewhere, I'd say this is out of scope for now (documented) - just getting plain function pointers to work will be a major improvement and we don't need to tangle up this extra functionality in this PR.
https://github.com/llvm/llvm-project/pull/191187
More information about the cfe-commits
mailing list