<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>There is nothing non-deterministic about this, the behaviour is well-documented if you say "--help":</div><div><br></div><div> -i - Inplace edit <file>s, if specified.</div><div><br></div><div> -output-replacements-xml - Output replacements as XML.<br><br></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">Bram De Jong via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> ezt írta (időpont: 2018. dec. 3., H, 11:30):<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hi All,<div><br></div><div>I've been noticing that clang-format either seems to be non-deterministic or there is a difference between "-i" and "-output-replacements-xml".</div><div><br></div><div>I.e. if you do:</div><div>$ clang-format -style=file -i source_code.cpp<br></div><div>$ clang-format -style=file -output-replacements-xml source_code.cpp</div><div><br></div><div>The second command outputs replacements...</div><div><br></div><div>Should I file a bug for this and if so, where?</div><div><br></div><div>Bram</div><div><div dir="ltr" class="m_-6951052147450939500gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="color:rgb(0,0,0);font-size:12px;font-family:CourierNewPSMT"><div style="font-size:12.8px;margin:8px 0px 0px;padding:0px;color:rgb(34,34,34);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"><div><div></div><div></div></div></div><div style="font-size:12.8px;color:rgb(34,34,34);font-family:Roboto,RobotoDraft,Helvetica,Arial,sans-serif"></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>