Issue |
159111
|
Summary |
clang-format: extra space not deleted in `> >`, depending on content in other lines
|
Labels |
clang-format
|
Assignees |
|
Reporter |
bersbersbers
|
```
clang-format version 21.1.1
```
`x.h`:
```cpp
template<typename T>
concept X = requires(T & v, std::format_context ctx) { std::formatter<std::remove_cvref_t<T> >().format(v, ctx); };
```
`y.h`:
```cpp
template<typename T>
concept X = requires(T & v, std::format_context ctx) { std::formatter<std::remove_cvref_t<T> >().format(v, ctx); };
struct X<Y<Z1, Z2>> {};
```
`clang-format x.h --style="{BasedOnStyle: Google, ColumnLimit: 120}"`:
```cpp
template <typename T>
concept X = requires(T& v, std::format_context ctx) { std::formatter<std::remove_cvref_t<T> >().format(v, ctx); };
```
`clang-format y.h --style="{BasedOnStyle: Google, ColumnLimit: 120}"`:
```cpp
template <typename T>
concept X = requires(T& v, std::format_context ctx) { std::formatter<std::remove_cvref_t<T>>().format(v, ctx); };
struct X<Y<Z1, Z2>> {};
```
Note how the extra space between `> >` is deleted only in `y.h` (which is as I would expect it) but not in `x.h` (where I would have expected the space to be removed).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs