| Issue |
172440
|
| Summary |
[clang-format] Formatting breaks attributes with arguments
|
| Labels |
clang-format
|
| Assignees |
|
| Reporter |
nolange
|
This behaviour exists up to including 21.1.6.
Formatting this piece with style llvm
``` c++
class CStruct {
public:
alignas(32) std::array<std::array<std::byte, Impl::eP>, eP / Impl::eP> m_Buffs;
};
```
Results in
``` c++
class CStruct {
public:
alignas(
32) std::array<std::array<std::byte, Impl::eP>, eP / Impl::eP> m_Buffs;
};
```
clang-format should try hard to not break up the attribute
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs