loplugin:constantparam ignore some SFX macro generated code

Change-Id: Ic5d9a17aeec51d59e26c49bbdf5719e6d8f6486f
This commit is contained in:
Noel Grandin
2018-03-08 14:39:41 +02:00
parent a6bcb8c35e
commit e151ce85d1

View File

@@ -67,6 +67,11 @@ for callInfo, callValues in callDict.iteritems():
# part of our binary API
if sourceLoc.startswith("include/LibreOfficeKit"): continue
# ignore methods generated by SFX macros
if "RegisterInterface(class SfxModule *)" in nameAndParams: continue
if "RegisterChildWindow(_Bool,class SfxModule *,enum SfxChildWindowFlags)" in nameAndParams: continue
if "RegisterControl(unsigned short,class SfxModule *)" in nameAndParams: continue
if RepresentsInt(callValue):
if callValue == "0" or callValue == "1":
tmp1list.append((sourceLoc, functionSig, callInfo[3] + " " + callInfo[2], callValue))