https://bugs.llvm.org/show_bug.cgi?id=52425
Bug ID: 52425
Summary: clang-format AlignArrayOfStructures crashes when
seeing clauses of different number of members
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Created attachment 25426
--> https://bugs.llvm.org/attachment.cgi?id=25426&action=edit
test case
Crashes when formatting
std::vector<std::vector<uint8_t>> var_len_seq{
{ 0x80 },
{ 0xf5 },
{ 0xc3, 0x7f },
{ 0xc3, 0xc0 },
{ 0xe1, 0x7f },
{ 0xe1, 0xc0 },
{ 0xe1, 0x81, 0x7f },
};
If I remove the last line, I get a bad result:
std::vector<std::vector<uint8_t>> var_len_seq{
{0x80},
{ 0xf5 },
{ 0xc3, 0x7f},
{ 0xc3, 0xc0},
{ 0xe1, 0x7f},
{ 0xe1, 0xc0},
};
My _clang-format is
---
BasedOnStyle: Microsoft
AlignArrayOfStructures: Right
...
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs