[llvm-bugs] [Bug 38314] New: Mis-counting of braces with redundant nested scopes
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Jul 25 13:47:09 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38314
Bug ID: 38314
Summary: Mis-counting of braces with redundant nested scopes
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: drew at getcruise.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
This code formats poorly:
namespace n {
void foo() {
{
{
{
statement();
if (false) {
}
}
}
{
}
}
}
}
Formatter output (default settings, HEAD, reproduced here:
https://zed0.co.uk/clang-format-configurator/):
namespace n {
void foo() {
{
{{statement();
if (false) {
}
}
}
{}
}
}
}
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180725/41f82105/attachment.html>
More information about the llvm-bugs
mailing list