| Issue |
202901
|
| Summary |
`clang-format` doesn't properly format C++20 concepts
|
| Labels |
|
| Assignees |
|
| Reporter |
viktorpopp
|
So i have the following code:
```cpp
template <typename T>
concept Uart = requires(T a) {
{ a.write() } -> std::convertible_to<std::size_t>;
a.flush();
};
```
And the following `.clang-format`:
```yaml
BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignConsecutiveAssignments:
Enabled: true
AcrossComments: true
AlignCompound: true
AlignFunctionPointers: true
AlignConsecutiveMacros:
Enabled: true
AllowShortEnumsOnASingleLine: false
AllowShortFunctionsOnASingleLine: None
AllowShortLambdasOnASingleLine: None
IndentWidth: 4
ContinuationIndentWidth: 4
InsertNewlineAtEOF: true
ColumnLimit: 100
BreakBeforeBraces: Allman
```
But it doesn't apply the Allman breaks. Does anyone know why?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs