[clang] Thread Safety Analysis: Check managed capabilities of returned scoped capability (PR #131831)

Aaron Puchert via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 19 09:14:35 PDT 2025


================
@@ -3566,6 +3565,38 @@ void releaseMemberCall() {
   ReleasableMutexLock lock(&obj.mu);
   releaseMember(obj, lock);
 }
+#ifdef __cpp_guaranteed_copy_elision
----------------
aaronpuchert wrote:

Add blank lines around `#ifdef` and `#endif` for readability.

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


More information about the cfe-commits mailing list