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

Marco Elver via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 26 02:48:32 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.
----------------
melver wrote:

I'd wait a release cycle to turn it on by default under -Wthread-safety. This gives some time for early adopters to sort out their warnings on their own terms, rather than forcing them right now.

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


More information about the cfe-commits mailing list