https://bugs.llvm.org/show_bug.cgi?id=52424
Bug ID: 52424
Summary: clang-format AlignArrayOfStructures gives
incomprehensible results
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 25424
--> https://bugs.llvm.org/attachment.cgi?id=25424&action=edit
test case 1
This seems to be related to straight nested braces. I have two test cases:
case 1:
LZ4F_preferences_t prefs = { {
LZ4F_default,
LZ4F_blockLinked,
LZ4F_contentChecksumEnabled,
LZ4F_frame,
cbSource,
0,
LZ4F_blockChecksumEnabled,
} };
trunk gives
LZ4F_preferences_t prefs = {
{
LZ4F_default, LZ4F_blockLinked,
LZ4F_contentChecksumEnabled, LZ4F_frame,
cbSource, 0,
LZ4F_blockChecksumEnabled, }
};
13.0.0 crashes.
case 2:
class Derived : Base
{
void foo()
{
#ifndef _MSC_VER
const Object object = { {SOME_MACRO, { opt, someMember }} };
#else
#endif
}
};
trunk & 13.0.0 give
class Derived : Base
{
void foo()
{
#ifndef _MSC_VER
const Object object = {
{SOME_MACRO,
{ opt,
someMember }}
};
#else
#endif
}
};
--
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