| Issue |
61627
|
| Summary |
Unexpected formatting for clang-16 with AlignConsecutiveDeclarations and member object pointers
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
AMS21
|
While upgrading my project to support clang-16 I've noticed some strange formatting. I've boiled it down to the following code and clang-format options:
```cpp
template <typename T> void f() {
using U = T T::*;
U a = &T::b;
}
```
.clang-format
```yaml
AlignConsecutiveAssignments: true
AlignConsecutiveDeclarations: true
```
formatting it with clang-16 results in:
```cpp
template <typename T> void f() {
using U = T T::*;
U a = &T::b;
}
```
while using just
.clang-format
```yaml
AlignConsecutiveDeclarations: true
```
results in
```cpp
template <typename T> void f() {
using U = T T::*;
U a = &T::b;
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs