https://bugs.llvm.org/show_bug.cgi?id=48576
Bug ID: 48576
Summary: Extra file-wide indentation with trailing
parenthesized requires-expression in requires-clause
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]
.clang-format:
```yaml
IndentRequires: true
```
Input and expected formatted result:
```C++
template <class T>
requires x and (requires { y; })
struct w {};
int z;
```
Actual output:
```C++
template <class T>
requires x and(requires { y; }) struct w {};
int z;
```
Having a trailing, parenthesized requires-expression in a requires-clause
results in the rest of the file having an extra indentation level.
--
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