[clang] [FixIt] Improve Source Ranges and Fix-It Hints for Unused Lambda Captures #106445 (PR #117953)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Tue May 13 20:15:51 PDT 2025


================
@@ -219,11 +222,10 @@ UnsignedOrNone clang::getStackIndexOfNearestEnclosingCaptureCapableLambda(
     // Check if the capture-ready lambda can truly capture 'this' by checking
     // whether all enclosing lambdas of the capture-ready lambda can capture
     // 'this'.
-    const bool CanCaptureThis =
-        !S.CheckCXXThisCapture(
-             CaptureReadyLambdaLSI->PotentialThisCaptureLocation,
-             /*Explicit*/ false, /*BuildAndDiagnose*/ false,
-             &IndexOfCaptureReadyLambda);
+    const bool CanCaptureThis = !S.CheckCXXThisCapture(
----------------
ojhunt wrote:

This looks like an irrelevant formatting change? possibly the result of accumulated changes

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


More information about the cfe-commits mailing list