Refactor inspect-library
-
inspect-library: Use gcc cleanup attribute for cleanup
-
inspect-library: Use glibc argz(3) to list hidden dependencies
This makes it easier for scan-build to understand that we are not doing anything wrong here: parsing the command-line options twice should result in the same number of items being put in hidden_deps[], but scan-build can't know that.
/cc @denittis