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

    <tr>
        <th>Summary</th>
        <td>
            "KeepEmptyLinesAtTheStartOfBlocks: false" not respected for namespaces
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

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

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

<pre>
    In clang-format-12, `KeepEmptyLinesAtTheStartOfBlocks: false` removes the empty space at the top of a namespace. Starting with clang-format-13 (including 14, 15, 16) this option is no longer effective:

```
$ cat test.cpp
namespace {
    
    int i = 0;
}
$ cat .clang-format
---
BasedOnStyle: Microsoft
KeepEmptyLinesAtTheStartOfBlocks: false
---
$ clang-format-12 -style=file ./test.cpp
namespace
{
int i = 0;
}
$ clang-format-13 -style=file ./test.cpp
namespace
{

int i = 0;
}
$ clang-format-14 -style=file ./test.cpp
namespace
{

int i = 0;
}
$ clang-format-15 -style=file ./test.cpp
namespace
{

int i = 0;
}
$ clang-format-16 -style=file ./test.cpp
namespace
{

int i = 0;
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy9U9uOmzAQ_RrzMgLZ5hYeeEg2rVS11T5sf8DAAO4aG2GTNn9fA0nTrFR1tVIXWWZunnMOZirTnMtPGmoldBe2ZhqECxkn_AFIRj8jjh-G0Z2_SI127771-OTE5B7bgzL1syXxHlqhLPpamHAwJ7TgegRcDoEdRY0g3BpyZgTTggAtBlwzEazNpO7gh3T9Cw4xEL6TulZzs1SwZOHE0nXPCC98U2nBjE4aDd7SBpTRHU6AbYu1kyf09Ag9EnrdM3pZm8sTqBdyaF1Uj-MW_c0OSH7YQuCfmyW1AwkkPgIl8aWC5Mf7ntGfWrZUGIabcRAWm0f95M5qYQhfZT0Za9pL3eu_-X3bFfr-FiG0G8ixlQohIvzjX8ReZVz0_Fvji6t6K9Cb4JL3hUvfFy77r3DXEQiwZFkW05xymgRNGTdFXIjASaewJJy__i_k3I-e89NvRz912IAXcptxG8yTKnvnxuWIl-JX54d9rqLaDN5R6nR9heNkvvse3pXWzmi9keY5i4O-bBLKeSKqtkHM0gKZYIJihmzHClFVu0CJCpUtSXog6TGQJff1tGAxY2mWJFFGuWh4nrKcJ03MCpJQHIRU0QIcmakLpnLlUM2d9UklrbO3pLBWdhrx2l_MrjdTuT__FNrzW-mWK9dfrIGUTA">