| Issue |
52834
|
| Summary |
[clang-format] Wrong indent after trailing requires clause
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
higaski
|
A trailing requires clause on a function seems to confuse clang-formats indentation rules for namespaces. Although my .clang-format files contains `NamespaceIndentation: None` I get some indentation on the following snippet
```cpp
template<int I>
constexpr void foo requires(I == 42) {}
namespace ns {
void foo() {}
} // namespace ns
```
This happens with version 13.0.0, I haven't tested anything else.
Removing the requires clause or placing it after the closing angle bracket works as expected.
[clang-format.zip](https://github.com/llvm/llvm-project/files/7762456/clang-format.zip)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs