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

    <tr>
        <th>Summary</th>
        <td>
            clang-format : elseif marcos?
        </td>
    </tr>

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

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

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

<pre>
    Consider the following codes.
```c++
#define elseif else if
//...
for(xxx)
        if(xxx)
                xxx;
        elseif(xxx)
                xxx;
```
You don't know how to set up the elseif handling to ensure that this code is formatted correctly, If you take the elseif as ifmarcos, you get code like:
```c++
for(xxx)
        if(xxx)
                xxx;
elseif(xxx)
        xxx;
```
If you set nothing up, you'll get code like this
```c++
for(xxx)
        if(xxx)
                xxx;
elseif(xxx) xxx;
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8k8uumzAQhp_GbEYHGZtgWLA4FyH1Ebp08BjcODiyh5Pk7Ssu6UVtT6UuKlmyGA-__vn0j07JDRNiyw4v7PCW6ZnGENtE-I5c8Lo48DI7BnNvX8OUnMEINCLY4H24ummAPhhMOeNvjD-zim-nZ-JlOVtVSIPWTQjoEzq7XuDs47VjosvzXcKGyER9u92YaPYG3jj7a43xZqnIl2-VTf3vnQ-T2-fnMIMJExOK4DSFK4zhChQgIcF8WYfdbY96Mn4ZmQLglOaIQKMmoNGlFQO4BDbEsyZCA32IEXvydyZe4ZOFe5iB9Al_lNQJnD3r2Ie0dC0tA9Im5t0JmXz-iOy_wvoTqQ8w7QMsVKZA44JhvuyemVDe_2x8hfIfrMNvLWemlaaRjc6wLSpVV1worrKxtXVta1laWZSmsVVVFVbVSpRlWdSyqVXmWsGF5LIQvJJFqXJRcKOOWpnmoLisJSs5nrXzuffv5zzEIXMpzdhWhTyIzOsj-rTukhATXmF9ZEIsqxXb5Z-n4zwkVnLvEqXvKuTIY9t7PQ1PW4aAyedHTvaIyC6bo29HoktaorGuzuBonI95H85MdIvefj1dYviCPTHRrS4SE93q8msAAAD__7-tJ_E">