diff options
author | Marek Kurdej <marek.kurdej+llvm.org@gmail.com> | 2022-05-13 11:27:35 +0200 |
---|---|---|
committer | Marek Kurdej <marek.kurdej+llvm.org@gmail.com> | 2022-05-16 09:42:20 +0200 |
commit | e20bc892b6facc56fffc012929157888bb798bed (patch) | |
tree | b17d892d8ed9685efffccce73e607c408e3c11e0 /lldb/source/Commands/CommandObjectScript.cpp | |
parent | 7ff0bf576b841d5418c0fb1c4b94f16c6205e7d9 (diff) | |
download | llvm-e20bc892b6facc56fffc012929157888bb798bed.zip llvm-e20bc892b6facc56fffc012929157888bb798bed.tar.gz llvm-e20bc892b6facc56fffc012929157888bb798bed.tar.bz2 |
[clang-format] Fix PointerAlignment: Right not working with tab indentation.
Fixes https://github.com/llvm/llvm-project/issues/55407.
Given configuration:
```
UseTab: Always
PointerAlignment: Right
AlignConsecutiveDeclarations: true
```
Before, the pointer was misaligned in this code:
```
void f() {
unsigned long long big;
char *ptr; // misaligned
int i;
}
```
That was due to the fact that when handling right-aligned pointers, the Spaces were changed but StartOfTokenColumn was not.
Also, a tab was used not only for indentation but for spacing too when using `UseTab: ForIndentation` config option:
```
void f() {
unsigned long long big;
char *ptr; // \t after char
int i;
}
```
Reviewed By: owenpan
Differential Revision: https://reviews.llvm.org/D125528
Diffstat (limited to 'lldb/source/Commands/CommandObjectScript.cpp')
0 files changed, 0 insertions, 0 deletions