[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
Thu May 22 03:08:04 PDT 2025


================
@@ -105,6 +105,13 @@ def note_replace_abs_function : Note<"use function '%0' instead">;
 def warn_pointer_abs : Warning<
   "taking the absolute value of %select{pointer|function|array}0 type %1 is suspicious">,
   InGroup<AbsoluteValue>;
+  
+// Lambda capture diagnostics
+
+def err_invalid_lambda_capture_initializer_type : Error<
----------------
ojhunt wrote:

I think you've last the code to emit these :-O

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


More information about the cfe-commits mailing list