You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benjamin Bannier (JIRA)" <ji...@apache.org> on 2018/07/31 09:18:00 UTC
[jira] [Created] (MESOS-9121) mesos-format inconsistently indents
continued lines
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)