Issue 176867
Summary [Clang Format] Incorrect formatting when "requires" is followed by a bracket
Labels clang
Assignees
Reporter Pure-Happiness
    ## Minimal Reproducing Example

```cpp
#include <concepts>
template <typename T>
  requires (std::integral<T> || std::floating_point<T>) && std::copyable<T>
T some_func(T a);
```

After using clang-format, the space between `requires` and `(` is removed. It seems that clang-format treats `requires` as a function rather than a keyword.

## Version

21.1.8 (installed via MSYS2 UCRT)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to