[clang] [Clang] Warn when `std::atomic_thread_fence` is used with `fsanitize=thread` (PR #166542)

Matthew Nagy via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 5 06:39:18 PST 2025


================
@@ -1769,3 +1769,5 @@ def ExplicitSpecializationStorageClass : DiagGroup<"explicit-specialization-stor
 
 // A warning for options that enable a feature that is not yet complete
 def ExperimentalOption : DiagGroup<"experimental-option">;
+
+def TSan : DiagGroup<"tsan">;
----------------
gbMattN wrote:

Hmm, unless you can think of any reason not to, I think copying the ASan style exactly, and maybe moving your change to be next to it to logically group them together would be better

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


More information about the cfe-commits mailing list