[clang] [Clang] Warn when `std::atomic_thread_fence` is used with `fsanitize=thread` (PR #166542)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 5 07:54:48 PST 2025
================
@@ -112,6 +112,9 @@ def warn_max_unsigned_zero : Warning<
"%select{a value and unsigned zero|unsigned zero and a value}0 "
"is always equal to the other value">,
InGroup<MaxUnsignedZero>;
+def warn_atomic_thread_fence_with_tsan : Warning<
+ "`std::atomic_thread_fence` is not supported with `-fsanitize=thread`">,
----------------
AaronBallman wrote:
```suggestion
"'std::atomic_thread_fence' is not supported with '-fsanitize=thread'">,
```
Using straight quote instead of backtick
https://github.com/llvm/llvm-project/pull/166542
More information about the cfe-commits
mailing list