[llvm-bugs] [Bug 36200] New: [Formatter/ObjC] Formatter incorrectly pulls selector component to previous line if parenthesized ternary is present
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Feb 1 10:35:42 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=36200
Bug ID: 36200
Summary: [Formatter/ObjC] Formatter incorrectly pulls selector
component to previous line if parenthesized ternary is
present
Product: clang
Version: trunk
Hardware: Macintosh
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Formatter
Assignee: unassignedclangbugs at nondot.org
Reporter: bhamiltoncx at gmail.com
CC: djasper at google.com, klimek at google.com,
llvm-bugs at lists.llvm.org
% cat test-objc-ternary-parens.m
[objc methodCall:foo
arg1:(a ? b : c)
arg2:anotherArg];
% clang-format -style="{BasedOnStyle: llvm, ColumnLimit: 40}"
test-objc-ternary-parens.m
[objc methodCall:foo
arg1:(a ? b : c)arg2
:anotherArg];
% cat test-objc-ternary-no-parens.m
[objc methodCall:foo
arg1:a ? b : c
arg2:anotherArg];
% clang-format -style="{BasedOnStyle: llvm, ColumnLimit: 40}"
test-objc-ternary-no-parens.m
[objc methodCall:foo
arg1:a ? b : c
arg2:anotherArg];
--
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/20180201/468aeb5e/attachment.html>
More information about the llvm-bugs
mailing list