[PATCH] D96975: [Sema] Add some basic lambda capture fix-its
Kirill Bobyrev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 8 05:26:22 PST 2021
kbobyrev added inline comments.
================
Comment at: clang/lib/Sema/SemaExpr.cpp:17457
+ SmallString<32> FixBuffer;
+ StringRef Separator = LSI->NumExplicitCaptures > 0 ? ", " : "";
+ if (Var->getDeclName().isIdentifier() && !Var->getName().empty()) {
----------------
sammccall wrote:
> This logic assumes there's no default capture, whic his reasonable but not locally obvious - add an assert?
I think this is the same as https://reviews.llvm.org/D96975#inline-920917 (which is done), am I wrong?
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