| Issue |
159254
|
| Summary |
clang-format: operators break `SortIncludes`
|
| Labels |
clang-format
|
| Assignees |
|
| Reporter |
bersbersbers
|
```
clang-format version 21.1.1
```
`x.h`:
```cpp
using std::a;
using MyLib::operator+;
using std::c;
using std::b;
```
`y.h`:
```cpp
using std::a;
using MyLib::xxx;
using std::c;
using std::b;
```
`clang-format x.h --style=Google`:
```cpp
using std::a;
using MyLib::operator+;
using std::b;
using std::c;
```
`clang-format y.h --style=Google`:
```cpp
using MyLib::xxx;
using std::a;
using std::b;
using std::c;
```
Note how includes are fully sorted only in `y.h` (which is as I would expect it) but not in `x.h` (where I would have expected sorting as well).
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs