Issue 132240
Summary Misformatting around attribute macros
Labels
Assignees
Reporter kadircet
    $ cat a.cc
```cpp
void MyGoodOldFunction(void* const long_enough = nullptr,
 void* my_attr_name even_longeeeeeeeeeeeeeeeeer = nullptr);
```

run: `clang-format -style='{BasedOnStyle: LLVM, AttributeMacros: ["my_attr_name"]}' a.cc`

expected formatting:
```cpp
void MyGoodOldFunction(
    void *const long_enough = nullptr,
    void *my_attr_name even_longeeeeeeeeeeeeeeeeer = nullptr);
```

actual formatting:
```cpp
void MyGoodOldFunction(void *const long_enough = nullptr,
                       void *
 my_attr_name even_longeeeeeeeeeeeeeeeeer = nullptr);
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to