> The last could be handled be passing the code through the preprocessor (the -E flag in gcc) first
Nope, that only handles preprocessor directives (essentially, any line starting with '#'). Typedefs are handled by the parser.
That's still going to be way "less perfect" than diffing the output of `javap` or `godoc` or probably even the `help(module)` for a Python module.
The ability to diff APIs objectively gets better when we switch away from C header files.
By this point it's probably gone beyond the "perfect is the enemy of good" threshold though.