<div dir="ltr">We could resolve this using a separate TokenAnalyzer pass similar to what we are doing here  <a href="https://reviews.llvm.org/D69764">https://reviews.llvm.org/D69764</a>, such a  would let us look at the last token on the previous line or the next token in the next time to ensure we don't remove legal cases like <div><br></div><div>for(;</div><div>;</div><div>)</div><div><div><br></div><div>Adding a DoubleSemiFixer type class would allow clang-format to resolve such issue where it see erroneous double ";;" not just were the replacements have got confused.</div></div><div><br></div><div>I'm happy to look into that if that would resolve your issues?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Nov 16, 2019 at 11:03 PM Jonas Toth via Phabricator via cfe-commits <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">JonasToth added a comment.<br>
<br>
Hmm. I think this is fine, even though its not perfect.<br>
@aaron.ballman wdyt?<br>
<br>
<br>
Repository:<br>
  rCTE Clang Tools Extra<br>
<br>
CHANGES SINCE LAST ACTION<br>
  <a href="https://reviews.llvm.org/D70144/new/" rel="noreferrer" target="_blank">https://reviews.llvm.org/D70144/new/</a><br>
<br>
<a href="https://reviews.llvm.org/D70144" rel="noreferrer" target="_blank">https://reviews.llvm.org/D70144</a><br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</blockquote></div>