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-8174) clang-format incorrectly indents aggregate initializations
Date Mon, 06 Nov 2017 22:19:01 GMT
Benjamin Bannier created MESOS-8174:
---------------------------------------

             Summary: clang-format incorrectly indents aggregate initializations
                 Key: MESOS-8174
                 URL: https://issues.apache.org/jira/browse/MESOS-8174
             Project: Mesos
          Issue Type: Bug
            Reporter: Benjamin Bannier


Aggregate initializations are incorrectly indented. I would expect the following indention,

{code}
Foo bar{
    123,
    456,
    789};
{code}

Instead this is indented as

{code}
Foo bar{123,
        456,
        789};
{code}

Forcing a line break after the opening curly incorrectly indents the arguments with two instead
of four spaces,

{code}
Foo bar{

  123,
  456,
  789};
{code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message