[llvm-bugs] [Bug 40429] New: clang-format breaks inside lambda [] (regression since 3.8)
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jan 23 12:12:52 PST 2019
https://bugs.llvm.org/show_bug.cgi?id=40429
Bug ID: 40429
Summary: clang-format breaks inside lambda [] (regression since
3.8)
Product: clang
Version: 7.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: redbeard0531 at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
3.8, which is the only other version I have handy does this:
template <typename Func>
Future<T> tapError(Func&& func) noexcept {
return tapImpl(std::forward<Func>(func),
[](Func && func, const T& val) noexcept {},
[](Func && func, const Status& status) noexcept { call(func,
status); });
}
7.0.1 does this, which seems decidedly worse:
template <typename Func>
Future<T> tapError(Func&& func) noexcept {
return tapImpl(std::forward<Func>(func), [](Func && func, const T& val)
noexcept {}, [
](Func && func, const Status& status) noexcept { call(func, status); });
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190123/34025cb9/attachment.html>
More information about the llvm-bugs
mailing list