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

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 28 07:47:49 PST 2025


================
@@ -12804,6 +12812,20 @@ namespace {
       Visit(Callee);
       for (auto Arg: E->arguments())
         HandleValue(Arg->IgnoreParenImpCasts());
+      isInCXXOperatorCall = false;
+    }
+
+    void VisitLambdaExpr(LambdaExpr *E) {
+      if (isInCXXOperatorCall) {
----------------
zhaohuiw42 wrote:

Changed to this style, thanks.

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


More information about the cfe-commits mailing list