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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format] How to remove blank line after open curly bracket (`{`)?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-format
      </td>
    </tr>

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

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

<pre>
    How can I remove the blank lines in the following example?

```c
char *strings[] = {

    "Hello", "World"};  // Remove the blank line above

typedef struct {

    int a; // Remove the blank line above
} my_struct_t;

void foo()
{

     // Remove the blank line above
 while (true)
    {

        // Remove the blank line above
 }
}
```


</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMksGOnDAMhp_GXKwdBWcywIHDTEdoe-2lx1VgDKQbCErCbOftq8BW3ZV6WMkCGdmf7Z9fh2CGmbkGdQF1zfQaR-frRfvJVDJr3e1RP7s37PSM39Hz5O6McWRsrZ5f0ZqZA5p5-9Q7a92bmQfk33paLINsQJxTnMQeHYhzN2qPQOcQvZmHsA9GkFeE4rLXIyIC0TNb64AI6FtKfzpvbyktriAvqaIBavDH_5ZC3bo777T4WPjGPYbo1y5-nmLmiDrRvgYrrjg9XnbQSwT5Tro7c8PeOaASqNoKP8z4GhvfRmMZgcroV94xW_Mn1JdpSaRt4Y_y76DsVstbJSudcZ0Xx7I6HQVRNtZ5L6nVRVWeSpa6KklJOglFWrVCS6UyU5MgJU5C5ooE0YE5L7XWJbEoVM4ajoInbezB2vt0cH7ITAgr1_mRTjLPrG7Zhs1rRJ3V8_DUOz_pmP6quma-Tn1P7ToEOAprQgz_SNFEu_n0U6O6YvJndH_N-VGMPrJHt_CM3ertA1uvu1eOSeSkRnFJT6pANtnqbT3GuASQ513hwcRxbQ-dm4CatMX762nx7hd3EajZjgtAzft995r-BAAA___G8fza">