[llvm-bugs] [Bug 28614] New: Inconsistent formatting of functions with anonymous parameters
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jul 19 03:53:04 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=28614
Bug ID: 28614
Summary: Inconsistent formatting of functions with anonymous
parameters
Product: clang
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: labath at google.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
Classification: Unclassified
I think the example says it all.
$ clang-format -style='{BreakBeforeBraces: Allman, AlwaysBreakAfterReturnType:
All}' <<EOF
> class C
> {
> void f() {}
> void f(int) {}
> void f(a::b) {}
> void f(a::b c) {}
> };
> EOF
class C
{
void
f()
{
}
void
f(int)
{
}
void f(a::b) {}
void
f(a::b c)
{
}
};
Note that the function void f(a::b) is not formatted like the others. Also note
that this does not happen when the function is not in a class.
--
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/20160719/d5cb82d0/attachment-0001.html>
More information about the llvm-bugs
mailing list