loplugin:unusedmethods

Change-Id: Ie92b52eabc425a4688b6d4f7cfb547ad59f4afc4
Reviewed-on: https://gerrit.libreoffice.org/84106
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2019-11-29 14:32:56 +02:00
parent 6ed87cc5a4
commit 964dec70d0
3 changed files with 137 additions and 117 deletions

View File

@@ -157,7 +157,9 @@ for d in definitionSet:
if d[0] == "basic_ostream<type-parameter-?-?, type-parameter-?-?> &" and d[1].startswith("operator<<(basic_ostream<type-parameter-?-?"):
continue
# ignore lambdas
if " ::operator " in method or " ::__invoke(" in method or " ::operator()" in method: continue
if (" ::operator " in method) or (" ::__invoke(" in method) or (" ::operator())" in method): continue
# ignore stuff generated by std::function parameters
if ("(anonymous)::operator " in method) and ("(*)" in method): continue
# stuff generated by Qt
if "::tr(" in method or "::trUtf8(" in method: continue