[clang] [ThreadSafety] Ignore parameter destructors (PR #170843)
Marco Elver via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 5 04:43:53 PST 2025
================
@@ -7622,3 +7622,26 @@ void testLoopConditionalReassignment(Foo *f1, Foo *f2, bool cond) {
ptr->mu.Unlock(); // expected-warning{{releasing mutex 'ptr->mu' that was not held}}
} // expected-warning{{mutex 'f1->mu' is still held at the end of function}}
} // namespace CapabilityAliases
+
+namespace test_function_param_lock_unlock {
----------------
melver wrote:
It'd be good to group this with related tests near the `test_scoped_lockable` namespace, probably just add below it.
https://github.com/llvm/llvm-project/pull/170843
More information about the cfe-commits
mailing list