<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Feature request: when breaking function call / prototype, put parenthesis on next line"
   href="https://bugs.llvm.org/show_bug.cgi?id=49481">49481</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Feature request: when breaking function call / prototype, put parenthesis on next line
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Formatter
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>simon.marchi@polymtl.ca
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>djasper@google.com, klimek@google.com, llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Following this message:

<a href="https://sourceware.org/pipermail/gdb/2021-March/049225.html">https://sourceware.org/pipermail/gdb/2021-March/049225.html</a>

I am logging a bug regarding one issue that is preventing using clang-format
for the GDB project.

When starting an argument/parameter list on the next line because the function
name or some arguments/parameters are too long, we put the parenthesis on the
next line.  For example:

void
this_is_a_quite_long_function_name
  (this_is_a_very_very_very_very_very_very_long_struct_name p)
{
}

I tried all kinds of configuration tweaks, it doesn't seem to be possible to
convince clang-format to do that.  It prefers the parenthesis on the first
line:

void
this_is_a_quite_long_function_name (
  this_is_a_very_very_very_very_very_very_long_struct_name p)
{
}

Similarly, when calling this function, we use:

int
main ()
{
  this_is_a_quite_long_function_name
    (this_is_a_relatively_long_variable_name_that_causes_wrapping);
}

which gets transformed to

int
main ()
{
  this_is_a_quite_long_function_name (
    this_is_a_relatively_long_variable_name_that_causes_wrapping);
}</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>