https://bugs.llvm.org/show_bug.cgi?id=38909
Bug ID: 38909
Summary: [clang-format] Support generators in C++
Product: clang
Version: 7.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: dennis.fels...@sap.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
We use lambdas to write code like:
int main()
{
int newValue;
If(match, [&]() {
newValue = false;
}).ElseIf(match2, [&]() {
newValue = true;
}).Else([&]() {
newValue = false;
});
}
Unfortunately clang-format since version 5 started indenting the ElseIf:
$ clang-format -style webkit x.cpp
int main()
{
int newValue;
If(match, [&]() {
newValue = false;
})
.ElseIf(match2, [&]() {
newValue = true;
})
.Else([&]() {
newValue = false;
});
}
I couldn't find an option to turn this behaviour off.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs