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

    <tr>
        <th>Summary</th>
        <td>
            [clang-format]
        </td>
    </tr>

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

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

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

<pre>
    `clang-format` wrongly formats the macro when `SkipMacroDefinitionBody: true`:

Before: (tmp.cpp)
```cpp
#define MY_MACRO \
    /* this is a comment */ \
 1

int main()
{
    int a = MY_MACRO;
}
```

Command:
```sh
clang-format -i --style="{SkipMacroDefinitionBody: true}" tmp.cpp
```

After:
```cpp
#define MY_MACRO // There is no '\' here! The macro will not be multiline.
/* this is a comment */ \
    1

int main() { int a = MY_MACRO; }
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMk0-PmzwQxj_NcBklMkMM4cABNsoteqW3vfRUGXCCW_9BttlVvn1lkrS7261ayRLSzPh5ht94RAjqYqVsgHfAD5lY4uR8I6yzV-OWMA9Z78ZrAyUbtLCXzdl5IyKUDF-8sxd9xVskYJwkGjF4hy-TtAgl-_RdzacUOcizsioqZzs3XqFoMfpFQsmgaIGl08mz8zJlgPbRzNthnoHqlCzZ7aQIa4GKMalJPH35emqf_v8PgT8BaxERgY5ALcZJBVQBBQ7OGGkjArVAx0dlfvNUNqIRygLt71ZVdxdKKYFQHH66QNGtFYfXLd10npwxwo73f3nkwgSsfc0MNwo3mxCvWkJxACKour8RqlIdPnj85tyeo_TvfP-MKcE54udJepnoWIdAVUJCFaYgUJ6yjyEqrdG6iL1Es-iotLJyu0r_E2TEjzkjVN3HfPEd3WxsirEuapHJJq84r3jNOM-mpj5XfTGMNeNDtdv1-bjno-BU1TvJ6pLzTDXEiLM95azkjPPt0DM5ir7Y51Tn53yEHZNGKL3V-tlsnb9kKoRFNjnflfsi06KXOqw7QfTm3ROlLfFNurfpl0uAHdMqxPBLKaqo1316c5EfssXrZopxDmli6zAuKk5Lvx2cATomgftnM3v3TQ4R6Lj2FYCO99aeG_oRAAD__30aFUc">