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: unassignedclangb...@nondot.org
Reporter: o...@smolsky.net
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs