[PATCH] D96975: [Sema] Add some basic lambda capture fix-its

Kirill Bobyrev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 5 10:47:00 PST 2021


kbobyrev added inline comments.


================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:7462
+  def note_lambda_default_capture_fixit : Note<
+    "capture all by %select{value|reference}0">;
   def note_lambda_decl : Note<"lambda expression begins here">;
----------------
also, "capture all" is a little confusing to me but I don't know what would be better. "capture everything"/"capture all variables/objects"? don't know if it's better.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D96975/new/

https://reviews.llvm.org/D96975



More information about the cfe-commits mailing list