<div dir="ltr">Nope, feel free to write one :)</div><br><div class="gmail_quote"><div dir="ltr">On Fri, May 20, 2016 at 11:08 AM Gonzalo BG via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Does anybody know of a libclang-based semantic-diff tool or is working on one? <br><br>Things I am looking for:<div><br><div>- ability to ignore _all_ formatting while diff'ing files (e.g. be able to diff 2 files formatted with completely different styles and show only non-formatting related changes)</div><div><br></div><div>- semantic diffs, e.g., if a class variable was renamed, instead of giving a diff on every usage of the variable, I would like to get only 1 diff: "this class variable was changed", used 10000 times, and then be able to see/merge/edit the diffs at a semantic level. The same for function names, class names, macros, namespaces...<br><br></div></div><div>A problem introduced by clang format is that as bugs get fixed and new versions get released and as developers work with different versions of it formatting changes creep into source code repositories along real changes. Being able to filter out this noise would be very valuable. <br><br>Right now the situation with clang-format is "don't ever think about source code formatting again, _until_ you need to commit", which is way better than what we had, but still not perfect. I don't want to ever think about formatting again, not even while diff'ing and/or committing.</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>