<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/63846>63846</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang-format may treat aggregate initialization of a pointer type inside an if condition as multiplication
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-format
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
MarcoFalke
</td>
</tr>
</table>
<pre>
Steps to reproduce with `clang-format version 16.0.6`:
* Output of `clang-format /tmp/a.cpp`:
```cpp
#define MYI int
int main() {
if (2 * 3)
;
if (int *p{nullptr})
;
if (MYI * p{nullptr}) // wrong, should be "*p"
;
if (MYI *p = nullptr)
;
}
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyEUs1u3DwMfBr6QsRQKK9_Dj4k38LAdwh66KlHWdZ61cqSINEJ0qcv5CToT4IWMGyD4gxnxFE529UbM8LpHk7nSu18DWl8UEmHSblvpprD8jx-ZhMzcsBkYgrLrg0-Wb4itEI75debS0ibYnw0Kdvg8batRd1CK0DegTiDeHvTHX7aOe6M4fIODTTxFoEmVesYP0C34uUpp698cjEX6w0-fPkfreeXsvWMm7IeqAcaELr7lzqivSBQT1iESKDhrY4I8o-mQgJ0F6G797tzkRN0579DiojC_A5TrAFN-JSCX4H-w3wNu1twNghExxSifxNHBHnGN-YPpZR5x0-1jHIZ5KAqM962_UBSdr2orqPqT_2pWeZ50M3QtVrrRZKhvjHqoqSgyo4kSIruVopOtiTquRGd7kRvpBT9ctLQCLMp62rnHrc6pLWyOe9mbGXftJVTs3H5CBTRr_stFk_nKo0FdjPva4ZGOJs5_yRiy86Mv6ViU8_IyShGta7JrIoNWm_ZKme_Ky5xCxdUGIP1bBLycywN2S4GlS8XqINf7NGoMm67Yxud1Qe02pMbr8wxl6wdS1otX_e51mEDmoqw189NTOGr0Qw0HXYz0HQ4_hEAAP__g632qw">