summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-08 14:39:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-08 14:41:03 +0200
commite151ce85d1c219a94365af6eab6cc5fc54a0ea7e (patch)
tree4a1fc5873f829f12157cf92c24ae90031d448303
parentloplugin:constantparam in linguistic..sfx2 (diff)
downloadcore-e151ce85d1c219a94365af6eab6cc5fc54a0ea7e.tar.gz
core-e151ce85d1c219a94365af6eab6cc5fc54a0ea7e.zip
loplugin:constantparam ignore some SFX macro generated code
Change-Id: Ic5d9a17aeec51d59e26c49bbdf5719e6d8f6486f
-rwxr-xr-xcompilerplugins/clang/constantparam.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/compilerplugins/clang/constantparam.py b/compilerplugins/clang/constantparam.py
index dcf7a680d9f0..97dada368d60 100755
--- a/compilerplugins/clang/constantparam.py
+++ b/compilerplugins/clang/constantparam.py
@@ -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))