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

Younan Zhang via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 28 00:05:06 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.
----------------
zyn0217 wrote:

I think this is a little chatty ... The name is already self-explanatory from what I see.

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


More information about the cfe-commits mailing list