don't write empty undeclared/unused/undocumented files
Submitted by Allison (desrt)
Link to original bug (#546138)
Description
it would be nice if gtk-doc didn't write out zero byte files for -undeclared/-unused/-undocumented.txt.
this allows you to not have these files in your .gitignore. this means that git-status will alert you when you have undeclared/unused/undocumented symbols. that's quite useful, i think. :)
it might also be cool to emit (or not emit) a -warnings.txt file if any WARNING: lines showed up. then git-status could tell you about that too.
note: another way of doing this would be to check the zero-byte files into your version control and then you'd see if they changed from being zero bytes. this is a little bit dirty, though (to have zero-byte, machine-generated files in version control). also note: this wouldn't work now anyway because of the statistics at the top of -undocumented.txt.