loplugin:constantparam

Change-Id: Idbe8c8e6b3d44cacce296ec8c79b2b244281057c
Reviewed-on: https://gerrit.libreoffice.org/29321
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2016-09-29 12:43:17 +02:00
committed by Noel Grandin
parent 8e812b87ff
commit 4d87443bf5
76 changed files with 181 additions and 345 deletions

View File

@@ -35,13 +35,24 @@ for callInfo, callValues in callDict.iteritems():
callValue = next(iter(callValues))
if "unknown" in callValue:
continue
sourceLoc = callInfo[4]
functionSig = callInfo[0] + " " + callInfo[1]
# try and ignore setter methods
if ("," not in nameAndParams) and (("::set" in nameAndParams) or ("::Set" in nameAndParams)):
continue
v0 = callInfo[4]
v1 = callInfo[0] + " " + callInfo[1]
# ignore code that follows a common pattern
if sourceLoc.startswith("sw/inc/swatrset.hxx"): continue
if sourceLoc.startswith("sw/inc/format.hxx"): continue
# template generated code
if sourceLoc.startswith("include/sax/fshelper.hxx"): continue
# debug code
if sourceLoc.startswith("include/oox/dump"): continue
# part of our binary API
if sourceLoc.startswith("include/LibreOfficeKit"): continue
v2 = callInfo[3] + " " + callInfo[2] + " " + callValue
tmp1list.append((v0,v1,v2))
tmp1list.append((sourceLoc, functionSig, v2))
# sort results by filename:lineno
def natural_sort_key(s, _nsre=re.compile('([0-9]+)')):