https://bugs.llvm.org/show_bug.cgi?id=41349
Bug ID: 41349
Summary: Lambda code misformatted due to a cast
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
This is formatted correctly:
Call({a, [=]() { something1(o); }, b});
This is misformatted:
void F() {
Call({(Cast)[] { f(); }});
}
It looks like the '[' is parsed as an array access, rather than a lambda
introducer.
--
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