[libcxx-commits] [clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 5 15:15:03 PDT 2025


PiJoules wrote:

> > LGTM and can confirm this fixes #156760. Could you add that repro as a regression test here.
> 
> Can you check if the regression tests added to `clang/test/PCH/thread-safety-attrs.cpp` covers the cases?

That test passes mutexes to std::lock but the example in the bug has unique_locks passed to std::lock

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


More information about the libcxx-commits mailing list