From 3d7325898547c94826cfddc6852d400e84e2dda1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 30 May 2016 15:37:25 +0200 Subject: loplugin:unusedmethods Change-Id: Ifeb818227a960cab8fd2e8e7352468efbfe1232c Reviewed-on: https://gerrit.libreoffice.org/25668 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/unusedmethods.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'compilerplugins/clang') diff --git a/compilerplugins/clang/unusedmethods.py b/compilerplugins/clang/unusedmethods.py index a15107994374..a4717c912fe0 100755 --- a/compilerplugins/clang/unusedmethods.py +++ b/compilerplugins/clang/unusedmethods.py @@ -270,6 +270,8 @@ for d in definitionSet: # ignore the SfxPoolItem CreateDefault methods for now if d[1].endswith("::CreateDefault()"): continue + if "::operator" in d[1]: + continue unusedSet.add(d) # used by the "unused return types" analysis tmp1set.add((method, definitionToSourceLocationMap[d])) -- cgit