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

    <tr>
        <th>Summary</th>
        <td>
            [clang-tidy] cppcoreguidelines-prefer-member-initializer fix-it produces broken code
        </td>
    </tr>

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

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

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

<pre>
    The clang-tidy fix-it `cppcoreguidelines-prefer-member-initializer` turns 
```
struct S {
  S() : M{} { M = 0; }
  int M;
};
```
into
```
struct S {
  S() : M0 { }
  int M;
};
```
Tested with today's main (f502b981b471c04bef1b2a6c581c02b59f931163).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycks9u3SwQxZ9mvEG-gsEYvPAikXV3WSUvAHiuzRf_E-CvvX36yu5N0y4bCQmY4XDmSD-bUhgWohbUM6iusHse19gmP9LyTrFwa39v30ZifrLLUObQ39ktfC9DZlBzv21-jTTsoacpLJTKLdKNYjnT7CiWYQk52Cn8oAg1Z3mPS2LAO-BPUPPHOq8px91n9spAP_-qMPYKaAAbBvKJvRx13R1t9sJAdoyDfGagu4_XYcnsBeRDfTR-n_-2CktevzYDP-2_4vlGKVPPvoU8srz29g6oE5ttWBiguSmOrjHCVVp4Xjm6CYe29soIz9Gp5tZIIWoJ2FyKvpV9IxtbUCs0rxphpDLF2AqrtJFGeLSCK80F9tJpYayqGkPOFKFFjhUXgiNHpcyFc6Glqirbc1NJbaHiNNswXabp__myxqEIKe3Ual2bqpisoymdnCB-0gCIBzexPUSl24cEFZ9CyunzmxzydBL2h0x17B_o-WBui2u_e0rMxfWdFubXnoo9Tu2Y85ZAPgFeAa9DyOPuLn6dAa_HGI-t3OL6H_kMeD2jJcDrme5nAAAA__9kzeEy">