added `--check-library` to self-check
Related issues: ~https://trac.cppcheck.net/ticket/10105~ ~https://trac.cppcheck.net/ticket/11182~ ~https://trac.cppcheck.net/ticket/11183~ ~https://trac.cppcheck.net/ticket/11523~ ~https://trac.cppcheck.net/ticket/11543~ https://trac.cppcheck.net/ticket/11555 ~https://trac.cppcheck.net/ticket/10946~ https://trac.cppcheck.net/ticket/11313 ~https://trac.cppcheck.net/ticket/13105~ ~https://trac.cppcheck.net/ticket/13125~
~We need to fix and merge #3090 before we can merge this~
This shows that --check-library has way too many false positives. I will try to file tickets for some of the cases.
This requires #3861 to be completed and merged first - instead of #3090.
There are way too many messages being reported which will (and possibly can) never be addressed completely. I wonder if we should make --check-library more granular so it might be possible to least tackle and enable a subset of the reported stuff.
@orbitcowboy Maybe you could also look at the warnings reported for our own code? Thanks.
Also mind the linked tickets which might require some updating after all your additions.