Teach clang-format about C++14 generalized lambda captures:
auto f = [b = std::move(d)]() {};
(clang-format would not think there's a lambda here because
of the =.)
Differential D11693
clang-format: Support generalized lambda captures. strager on Jul 31 2015, 1:51 PM. Authored by
Details
Teach clang-format about C++14 generalized lambda captures: auto f = [b = std::move(d)]() {}; (clang-format would not think there's a lambda here because
Diff Detail Event TimelineComment Actions This is the corresponding bug: llvm.org/PR19986
|
I very much doubt that we'll have an Expression parser here anytime soon. So, I don't think that this FIXME makes much sense. Instead, please provide a comment on what this is actually doing and in which cases it might fail.