[clang] Thread Safety Analysis: Basic capability alias-analysis (PR #142955)

Marco Elver via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 14 01:01:47 PDT 2025


================
@@ -7546,6 +7546,15 @@ void testRecursiveAssign() {
   f->mu.Unlock();
 }
 
+// A strange pattern that no sane person should write...
+void testStrangePattern(Mutex *&out, int &x) {
----------------
melver wrote:

Good point - I've dropped the translateCXXNewExpr() patch for now. 

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


More information about the cfe-commits mailing list