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: unassignedclangb...@nondot.org
Reporter: bhamilto...@gmail.com
CC: djas...@google.com, kli...@google.com,
llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs