[llvm-bugs] [Bug 35563] New: Bad indentation of function call arguments
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Dec 7 11:31:37 PST 2017
https://bugs.llvm.org/show_bug.cgi?id=35563
Bug ID: 35563
Summary: Bad indentation of function call arguments
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: eugeni.stepanov at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
In the following example, IMHO, CCC... should be aligned with BBB...
$ echo 'f(A, BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB |
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC);' | bin/clang-format
f(A, BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB |
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC);
In the following example (without the other function argument) BBB... and
CCC... are aligned properly.
$ echo 'f(BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB |
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC);' | bin/clang-format
f(BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB |
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC);
And if I replace bitwise-or with bitwise-and, it goes off the rails completely:
$ echo 'f(A, BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB &
CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC);' | bin/clang-format
f(A, BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
&CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC);
--
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/20171207/63f3da09/attachment.html>
More information about the llvm-bugs
mailing list