[clang] [Clang] Check for uninitialized use in lambda within CXXOperatorCallExpr (PR #129198)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 28 07:58:05 PST 2025


================
@@ -12796,6 +12799,7 @@ namespace {
     }
 
     void VisitCXXOperatorCallExpr(CXXOperatorCallExpr *E) {
+      llvm::SaveAndRestore cxxOpCallScope(isInCXXOperatorCall, true);
----------------
erichkeane wrote:

```suggestion
      llvm::SaveAndRestore CxxOpCallScope(isInCXXOperatorCall, true);
```

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


More information about the cfe-commits mailing list