https://bugs.llvm.org/show_bug.cgi?id=49300

            Bug ID: 49300
           Summary: Regression: chain of ternary operator will give
                    unexpected line break formatting because of
                    ColumnLimit
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: Formatter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

Hello,
I identified a regression on the trunk of clang-format.
Here the example to reproduce the issue easily.

Simply put this line in test.cpp:
bool v = a ? b : c ? d : e;

Then add a .clang-format with:
ColumnLimit: 0

You will see that the text is then formatted like that:
bool v = a ? b : c ? d
                   : e;

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to