[PATCH] D96975: [Sema] Add some basic lambda capture fix-its
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 19 07:43:09 PST 2021
njames93 added inline comments.
================
Comment at: clang/include/clang/Basic/DiagnosticSemaKinds.td:7459-7460
"capture-default specified">;
+ def note_lambda_variable_capture_fixit : Note<
+ "capture variable %0 by %select{value|reference}1">;
+ def note_lambda_default_capture_fixit : Note<
----------------
Does the variable name need attaching to the note, given the note is attached to a fix-it containing the name of the variable already?
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