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

    <tr>
        <th>Summary</th>
        <td>
            Clang-Format removes empty line at end of file
        </td>
    </tr>

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

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

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

<pre>
    For C and C++ an empty line at the end of each file (header and implementation) is mandatory.

clang format does not add this new line. Moreover, clang-format removes existing empty line at the and of files.

This leads to compiler warnings.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxlkcFOxCAQhp-GXiY2LSzd7YGDrllP3kw8s2XaYig0QNV9e2dRY9SEwMDM_N8PnIO5qFOIcATtDRwZv6NBMeCy5gs46xF0hjwjIBWEEVAPM4zWITB-mFEbjKXXLqvDBX3W2QbPeA82wUIZnUO81Ky5Z83t5zw47ScYQ1xI2gRM4EMGbQxxqMnjWwHX8BgihleMjB-hNN18NUVc6DwBvtuULYn9t6s_7V6dpl_0pyvDkfEEOcAQlpVKIrzp6Ekp1ZVRwvSi11W22aE6FvDpD_gXD39Y1RadmnNeExO3jJ9oTDbP27kmEm2ce_1ebtYYXnDItLUpbZgokF0jd9WsOrnvhRiEHA03neC85-3QNpxsG46yq5w-o0uKSfowfn2xIkExk_eVVbzhvOla2Yp2L3e1Hvdjt8O-RX1APAi2a3DR1tVXH3WIUxVVsXTepkRJR8-afpI6JTt5xIIjfb3lOUT1gJR8Ruvn4ExVDKhygQ-uU8bR">