[clang] Thread Safety Analysis: Improved pointer handling (PR #127396)

Aaron Puchert via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 25 16:56:48 PST 2025


================
@@ -528,6 +529,9 @@ for a period of time, after which they are migrated into the standard analysis.
 
 * ``-Wthread-safety-beta``:  New features.  Off by default.
 
+  + ``-Wthread-safety-pointer``: Checks when passing or returning pointers to
+    guarded variables, or pointers to guarded data, as function argument or
+    return value respectively.
----------------
aaronpuchert wrote:

I think we can decouple this from beta. It's reasonably similar to `-Wthread-safety-reference`. We might even turn it on with `-Wthread-safety`.

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


More information about the cfe-commits mailing list