[llvm-bugs] [Bug 35461] New: clang-format: wrong formatting of lambdas with noexcept and trailing return type
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 29 05:42:37 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35461
Bug ID: 35461
Summary: clang-format: wrong formatting of lambdas with
noexcept and trailing return type
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: curdeius at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
The third lambda in the following snippet gets weirdly formatted:
[]() noexcept {};
[]() -> void {};
[]() noexcept->void{}; // <- incorrect
whereas corresponding functions are formatted in this way:
auto f() noexcept;
auto f() -> void;
auto f() noexcept -> void; // <- OK
It may be related to bugs #28590 and #34777.
clang-format trunk from 2017-11-22.
--
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/20171129/81256256/attachment.html>
More information about the llvm-bugs
mailing list