mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Bannier (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MESOS-9121) mesos-format inconsistently indents continued lines
Date Tue, 31 Jul 2018 09:18:00 GMT
Benjamin Bannier created MESOS-9121:
---------------------------------------

             Summary: mesos-format inconsistently indents continued lines
                 Key: MESOS-9121
                 URL: https://issues.apache.org/jira/browse/MESOS-9121
             Project: Mesos
          Issue Type: Task
            Reporter: Benjamin Bannier


{{mesos-format}} inconsistently formats continued lines. I would expect both {{return}} statements
in the following example to be indented four spaces from the first non-whitespace character
of the lines containing the {{return}} statements.

{code}
struct S
{
  S foo() { return *this; }
};

S function_with_an_annoyingly_long_name(int) { return {}; }

S g()
{
  int an_unconventionally_long_variable_name = 0;

  // (1) Normal `return` is indented four spaces relative to first
  // non-whitespace character on line.
  return function_with_an_annoyingly_long_name(
      an_unconventionally_long_variable_name);

  // (2) `return` with trailing member function call is indented four spaces
  // relative to first character of value producer.
  return function_with_an_annoyingly_long_name(
             an_unconventionally_long_variable_name)
    .foo();
}
{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message