https://bugs.llvm.org/show_bug.cgi?id=45141
Bug ID: 45141
Summary: clang-format adds bogus linebreak when function
arguments contain lambda
Product: clang
Version: 10.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
clang-format is unable to correctly format code like this:
func(0, [] {}, 0);
It will format it into:
func(
0, [] {}, 0);
Shortest example code that reproduces it:
void f()
{
func(0, [] {}, 0);
}
The clang-format invocation can be the simplest possible. Just "clang-format
test.cpp" without any .clang-format input file and no arguments.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs