Issue 139514
Summary Attributes and `PointerAlignment: Left` violates ColumnLimit
Labels c++, clang-format
Assignees
Reporter kadircet
    command: `clang-format -style='{PointerAlignment: Left, ColumnLimit: 80}' a.cc`

actual formatting:
```cpp
void foo(
    const MySuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLongTypeName* const
 my_super_super_super_super_super_long_variable_name) {}
```
Note that second line above is 81 chars long. Despite the ColumnLimit defaulting to 80.

epxected formatting:
```cpp
void foo(
    const MySuperSuperSuperSuperSuperSuperSuperSuperSuperSuperLongTypeName*
 const my_super_super_super_super_super_long_variable_name) {}
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to