title: How can I get clang-format to put the parameters of a brace-initialized construction on the same line?
body: <p>I'm running <code>clang-format</code>, with a <code>.clang-format</code> file which only specifies <code>Language: Cpp</code>, on this input (invalid C++, but that's unimportant for this):</p>
  <pre class="lang-cpp prettyprint-override"><code>const auto SOME_VARIABLE_NAME = {{&quot;key&quot;, { {&quot;key2&quot;, std::array{ 0, 0, 0, 0, }}, }}};
  </code></pre>
  <p>I get this output:</p>
  <pre class="lang-cpp prettyprint-override"><code>const auto SOME_VARIABLE_NAME = {{&quot;key&quot;,
                                    {
                                        {&quot;key2&quot;,
                                         std::array{
                                             0,
                                             0,
                                             0,
                                             0,
                                         }},
                                    }}};
  </code></pre>
  <p>I would something closer to the following output:</p>
  <pre class="lang-cpp prettyprint-override"><code>const auto SOME_VARIABLE_NAME = {{&quot;key&quot;,
                                    {
                                        {&quot;key2&quot;,
                                         std::array{0, 0, 0, 0}},
                                    }}};
  </code></pre>
  <p>I am not sure why clang-format puts a line break after each <code>0</code>, around column 50.</p>
  <p>What setting should I add to my <code>.clang-format</code> to achieve this?</p>
  <p>I've tried a few specifiers that I thought might be relevant, to no avail:</p>
  <ul>
  <li><code>AllowAllParametersOfDeclarationOnNextLine: true</code></li>
  <li><code>AllowShortFunctionsOnASingleLine: true</code></li>
  <li><code>BinPackParameters: true</code></li>
  <li><code>BreakBeforeBinaryOperators: false</code></li>
  <li><code>ColumnLimit: 120</code></li>
  <li><code>ConstructorInitializerAllOnOneLineOrOnePerLine: true</code></li>
  <li><code>Cpp11BracedListStyle: false</code></li>
  <li><code>IndentFunctionDeclarationAfterType: true</code></li>
  <li><code>PenaltyBreakBeforeFirstCallParameter: 1000</code></li>
  <li><code>Standard: Cpp11</code></li>
  </ul>
  <p>Edit: Still have this problem. Added a comment after the first brace to at least force the braces to the left more:</p>
  <pre class="lang-cpp prettyprint-override"><code>const auto SOME_VARIABLE_NAME = {  //
      {&quot;key&quot;,
       {
           {&quot;key2&quot;,
            std::array{
                0,
                0,
                0,
                0,
            }},
       }}};
  </code></pre>