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

    <tr>
        <th>Summary</th>
        <td>
            clang-format corrupts the code
        </td>
    </tr>

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

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

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

<pre>
    The following code 
```
class A
{
        MARCO1 // comment
        MACRO2
public:
        int x;
        int y;
};
```
is formatted to this bad code:
```
class A
{
 MARCO1 // comment
        MACRO2 public : int x;
    int y;
};
```

The .clag-format has only one line: BasedOnStyle: Microsoft
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMks2OmzAQx5_GXEaJHDtAOPhANuK2irTtC_hjAq6MHdmm27x9xYc2zaVahGBm_jD8f8zIlGzvEQUpz6S8FHLKQ4jCTGaSUaErVDAP8XNAuAXnwqf1PehgEAi9ENqSim7nkmonU4J20-rzFtDmvf14ux6AsI6wDnQYR_T5H_Xt48rW9D4pZzXh7ZdqfYY_hJ9fCo9nob4841c7NsEtxFHmjAZygDzYBEqaheD5ie8wwH8IYDtWDFgJgPAWXq3Pz3zb-3qdf_xeO9nvVhAYZILg3QOCR3DWzxhwlgnN1f_ID7fk71bHkMItF0Zw0_BGFigOVd2UdcU5LQYhTxRZXR6OlVTmWBten-pSK42GnSRtWGEFo4xTzviBlaeS7hVHdsKqaiqqkJacHCmO0rq9c7_HfYh9YVOaUFSHqjwWTip0aVkqxjx-wiISxuYdi2J-Z6emPpEjdTbl9OySbXYotJP-i1mHGKd7TpAHXEZXTNGJIed7moe4TKS3eZjUXoeRsG5utt129xh-oc6EdYuFRFi3WPwbAAD__60n2yU">