https://bugs.llvm.org/show_bug.cgi?id=48895
Bug ID: 48895
Summary: Function with unparenthesized trailing
requires-expression always put on a single line
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
.clang-format:
```
BasedOnStyle: LLVM
AllowShortFunctionsOnASingleLine: None
```
Input and expected formatted result:
```C++
auto f(int l, int r) requires requires {
l *r;
}
{
return l * r;
}
```
Actual output:
```C++
auto f(int l, int r) requires requires {
l *r;
}
{ return l * r; }
```
Because this works fine as input and actual formatted output:
```C++
auto f(int l, int r) requires requires {
l *r;
}
{
return l * r;
return l * r;
}
```
--
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