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

Nathan James via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 18 10:07:04 PST 2021


njames93 created this revision.
njames93 added reviewers: rsmith, sammccall, kbobyrev.
Herald added subscribers: usaxena95, kadircet.
njames93 requested review of this revision.
Herald added subscribers: cfe-commits, ilya-biryukov.
Herald added a project: clang.

Adds fix-its when users forget to explicitly capture variables or this in lambdas

Addresses https://github.com/clangd/clangd/issues/697


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D96975

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/Sema/SemaExpr.cpp
  clang/lib/Sema/SemaExprCXX.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96975.324690.patch
Type: text/x-patch
Size: 5338 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210218/f178d414/attachment.bin>


More information about the cfe-commits mailing list