[clang] Thread Safety Analysis: Support warning on taking address of guarded variables (PR #123063)
Aaron Puchert via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 11 07:59:30 PST 2025
================
@@ -1,5 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -verify -Wthread-safety -Wthread-safety-beta %s
// RUN: %clang_cc1 -fsyntax-only -verify -Wthread-safety -Wthread-safety-beta -fexperimental-late-parse-attributes -DLATE_PARSING %s
+// RUN: %clang_cc1 -fsyntax-only -verify -Wthread-safety -Wthread-safety-beta -Wthread-safety-addressof -fexperimental-late-parse-attributes -DLATE_PARSING -DCHECK_ADDRESSOF %s
----------------
aaronpuchert wrote:
I don't like so many run lines. Just add it to the default run line. There is no need to check in this test that Clang properly filters diagnostics, because it's not the Thread Safety Analysis, but the diagnostics engine that decides which warnings to print.
https://github.com/llvm/llvm-project/pull/123063
More information about the cfe-commits
mailing list