<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56659>56659</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] insert and/or preserve newlines preceding a closing brace.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ancientjpeg
      </td>
    </tr>
</table>

<pre>
    Apologies if there is a setting for this, I wasn't able to find anything that could do what I'm looking for in the docs! At my job, we generally style code with a lot of extra space, like so: 

```cpp
if (mCondition) {

    doSomething();

}
```

however, no matter what I try, I can't stop clang-format from doing the following: 

```cpp
if (mCondition) {

    doSomething();
}
```

Here's my .clang-format: 

```yaml
AlignAfterOpenBracket: Align
AllowShortFunctionsOnASingleLine: Empty
BreakBeforeBraces: Linux
BreakInheritanceList: AfterComma
ColumnLimit: 0
IndentCaseLabels: True
IndentWidth: 4
PointerAlignment: Left
MaxEmptyLinesToKeep: 2
```

Thanks in advance for any help you can offer, ++ thanks to the team for making the best formatter out there!
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9VE1v4zgM_TXOhZjAVb7GBx-SdIoptotZoAX2LEu0rUYSDUlu6n-_lN1iMgvsHDcQEpt8It_jRxrSU30cyFJnMIJpIfUYEEwECRFTMr6DlgKbTSzEGR7hKqMvxCGBbCxCImiN1yD9xBAGp14mUDRaDZrgmt8eGe7AEl0-oxmf8zBAcdA7OCZwE7xSkzNcETr0GKS1E8Q0cRJFGuFqUs-kLCWgFvA9BWY4SIX5kjUXhEjF5ghFeV-Ux4_vfbkcNQyLhRUW4qs7k9cmGWIlFRSH0-0l4I-mZ3I4K2I4g4rNL5jicP-vDLfenq74hiET8wROpoThoxSQwrTUUcmljDHRAMpK333h0jAY2kCOGSzVRC6YtXTNTP4Hdb_V9Z1HgznH3K31LeX_ZDZJZxfT0ZrOH1uuxI8B_SlIdcH53uz4xLDQ555Cehi9ygLiD398ZpoWn4zHDP_mhjQt8FNAeTkhU8AcD2P2M258v_E_eh5ok6RXHCIuGTOLMzknF9yZ7Oj8k3Fmdn9IfvQafTrLiE-yQTsHfwkj3nr_Njr12bFdrH9x0zj2LMmxfyaEbVq8f8r3mX2WEl_oD8QhA8RvKv7SS3-JeV-kfssa5vXhZYMe7QATjXmOeCHaZdwKceKTlzBf4-XMA5RQuvmek5fPoWowJlial4eTxrRsPq_jStcbXW0quUomWayL3emXXu_umU_EwP8AXhfigQMPAdnwhuDxarO6bFGoczbJw00xPzW5SevVGGzdpzTkivJ1Ph2v9tisFTl-sfbt8-fLEOgVVeJXE-PIDRYPu_1-V636WqltuRdaHkqBai-r5q5qt4dKtFpI3eJuZeeuZfaFEMwL5hD8zAJWphalEOVB3N3tt1931VqozV5sSjZh0whdFdsSnTR2nXmsKXSrUM-UmrGL7LQ8S_GnU8bILce5WDm-HBOPcc0dMzwGrwN2qzl9PdP_B-oNtY0">