diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-29 14:32:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-11-30 21:32:46 +0100 |
commit | 964dec70d0d068faa20f4b9ffac1cfd5911d81c2 (patch) | |
tree | a71074e36018e1318fbea79504c522b81c4cf138 /compilerplugins/clang/unusedmethods.py | |
parent | 6ed87cc5a4f755f360951550cac836e8967fc6bf (diff) |
loplugin:unusedmethods
Change-Id: Ie92b52eabc425a4688b6d4f7cfb547ad59f4afc4
Reviewed-on: https://gerrit.libreoffice.org/84106
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins/clang/unusedmethods.py')
-rwxr-xr-x | compilerplugins/clang/unusedmethods.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compilerplugins/clang/unusedmethods.py b/compilerplugins/clang/unusedmethods.py index a8b20cfe3b2c..3df9b1e96ebe 100755 --- a/compilerplugins/clang/unusedmethods.py +++ b/compilerplugins/clang/unusedmethods.py @@ -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 |