https://bugs.llvm.org/show_bug.cgi?id=46254
Bug ID: 46254
Summary: [clang-format] BreakBeforeBraces: Whitesmiths ; In a
‘switch’ block, the ‘default’ case is always missing
and indentation level.
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: release blocker
Priority: P
Component: Formatter
Assignee: unassignedclangb...@nondot.org
Reporter: smass...@matrox.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@lists.llvm.org
Bug found in upcoming llvm 11.0.
https://prereleases.llvm.org/win-snapshots/ClangFormat-2663a25f.vsix
In ‘clang-format’, when using "BreakBeforeBraces: Whitesmiths".
In a ‘switch’ block, the ‘default’ case is always missing and indentation
level. See below.
(It seems related to: https://reviews.llvm.org/D67627)
switch(x)
{
case 0:
{
foo(x + 1);
}
break;
case 1:
{
goo(x % 42);
}
break;
default:
{
printf("the default case");
}
break;
}
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs