[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


================
@@ -12597,6 +12597,12 @@ namespace {
     bool isRecordType;
     bool isPODType;
     bool isReferenceType;
+    // Tracks whether the current expression is being visited within a
+    // CXXOperatorCallExpr. This flag is set to true when entering a
+    // CXXOperatorCallExpr and reset to false upon exit. It is used to detect
+    // when a LambdaExpr is an operand of an operator call, enabling special
+    // handling of its capture initializations.
----------------
zhaohuiw42 wrote:

Ok, just remove them.

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


More information about the cfe-commits mailing list