title: How do you compare two files containing C code based on code structure, not merely textual differences?
body: <p>I have two files containing C code which I wish to compare. I'm looking for a utility which will construct a syntax tree for each file, and compare the syntax trees, instead of merely comparing the text of the files. This way minor differences in formatting and style will be ignored. It would be nice to even be able to tell the comparison tool to ignore differences such as variable names, etc.</p>
  
  <p>Correct me if I'm wrong, but diff doesn't have this capability. I'm a Ubuntu user. Thanks!</p>