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

            Bug ID: 51617
           Summary: separate lines arguments are merged into single line
                    in 'chain' function call
           Product: clang
           Version: 9.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangb...@nondot.org
          Reporter: marwro...@gmail.com
                CC: djas...@google.com, kli...@google.com,
                    llvm-bugs@lists.llvm.org

clang-format config based on webkit (but this is not that important):

clang-format --style=WebKit --dump-config > .clang-format

I have a chain function call with args placed in separate lines:

chain1(123456789).chain2(a,
    b,
    c);

when I increase arg length to more then 9 chars formatter, merges args into
single line:

chain1(1234567890).chain2(a, b, c);

I would expect that arguments won't be merged into a single line (same as in
clang-format 3.4.2)

I've checked all clang-formats >= 4 and <= 9 and the all have the same issue

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

Reply via email to