loplugin:constantparam ignore some SFX macro generated code
Change-Id: Ic5d9a17aeec51d59e26c49bbdf5719e6d8f6486f
This commit is contained in:
@@ -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))
|
||||
|
Reference in New Issue
Block a user