Issue |
145226
|
Summary |
clang-format format several times gives different result
|
Labels |
clang-format
|
Assignees |
|
Reporter |
kelbon
|
```cpp
#define TAG(...) struct a { \
};
```
clang-format once gives
```cpp
#define TAG(...) \
struct a { \
\
\
};
```
clang-format second time gives
```cpp
#define TAG(...) \
struct a { \
\
\
};
```
And its endless:
third time:
```cpp
#define TAG(...) \
struct a { \
\
\ < this brake moves to right every time
};
```
```bash
clang-format --version
clang-format version 20.1.5
```
.clang-format file:
```cpp
BasedOnStyle: Google
ColumnLimit : 110
AllowShortFunctionsOnASingleLine: false
AllowShortLambdasOnASingleLine: true
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
SortIncludes: false
DerivePointerAlignment: false # disables 'Google' option which forces ignoring my rules
PointerAlignment: Left
ReferenceAlignment: Left
InsertNewlineAtEOF: true
IndentPPDirectives: BeforeHash
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs