[llvm-bugs] [Bug 52491] New: Allow function arguments/parameters to be always forced one per line

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Nov 12 10:53:07 PST 2021


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

            Bug ID: 52491
           Summary: Allow function arguments/parameters to be always
                    forced one per line
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Formatter
          Assignee: unassignedclangbugs at nondot.org
          Reporter: registrirayme at live.com
                CC: djasper at google.com, klimek at google.com,
                    llvm-bugs at lists.llvm.org

Some code styles, e.g. Microsoft use the following formatting for function
arguments/parameters, which is impossible to configure with the available
options:

// a.h
void func1(
   int a1,
   int a2
);

// a.c
void func2(
   int b1,
   int b2
) {
  func1(
    b1,
    b2
  );
};

Arguments/parameters should be always forced on a new line.

-- 
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/20211112/2dee21a6/attachment-0001.html>


More information about the llvm-bugs mailing list