Is there a free diff utility that can compare two C++ files using their ASTs instead of the text?
What I was thinking of is something like:
- convert both files to AST
- Render AST back as C++ code (this canonicalizes indentation)
- Do normal diff between these two
- Also try to detect simple refactorings that were done (add/del/rename member for example)