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

    <tr>
        <th>Summary</th>
        <td>
            Parts of FixItRewriter public API not usable without having to write out all file changes
        </td>
    </tr>

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

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

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

<pre>
    The buffer_begin\buffer_end and WriteFixedFile methods of FixItRewriter all depend on the private Rewriter owned by FixItRewriter being populated with changes, but it can only be populated by WriteFixedFiles that writes out all file changes.
This make it impossible to defer writing files changes after the SourceManager is destroyed or only writing some changed files that you should be able to do with WriteFixedFile.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskk1vnDwQgH-NuYyyAi-w7IFD3kRIObxS1EbqsbLxgN0aG9nj3ey_r0xIP6KcEPLMM898iBjN7BB71vzHmsdCJNI-9FOcvCqkV7f-RSPINE0YvkucjWPNw_6LToFwCr4FQziYV1SDsQgLkvYqgp9gMK9P9AWvOSCAsBYUrjnNOyCNsAZzEYTwO8RfHSqQtw-ZEo2bYfVrsoJQwdWQhlELN2Nk_AFkIjAEo3Dgnb2BxL-C5e2DYQTSgmBjR_CJNrMpu-_MAysfWXn_ok2ERfzEDDfL6mM00iKQB4UThg2RzaaNuieDmLJz7u-rT2HE_4UTMwYwERRGCv6GCnx4U31HRL-8l1c7b7O8-QRR-2RV7kq8l_dvM_i3sV27UP1RnY9nUWBfnTgvq65q2kL3WHeqrhpxPFdcjKJSEz916tydqqY7tXVVmJ6XvC5PvK06zo_tQdbHbqpr1Z7Htq2PJatLXISxB2svy8GHuTAxJuyrsjydm8IKiTZut8S5wytsr4zzfFqhz0l3Ms2R1aU1keIfDBmy2D-LQJ8czpqkNSPcPz-B8wQpbmPIA8jL0-KSB0j-baOfLrRIwfaaaI3seM_4wPgwG9JJHka_MD5kj_1ztwb_A0difNjsI-PD3t6l578CAAD__-JEGiI">