summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-10 19:19:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-12 12:30:53 +0200
commitdd6d7992d6f16133fafa7a617cf5fa0ba1ae37cc (patch)
tree49da40c8dbfa15a9fde368e0a8b69a623f357eaf /compilerplugins
parent8891472e1f9c5e452a4e8d55241eeba118274092 (diff)
loplugin:constantparam
Change-Id: I67d74072c776c32a1f91df94c621efe180baf5dc Reviewed-on: https://gerrit.libreoffice.org/37481 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rwxr-xr-xcompilerplugins/clang/constantparam.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/compilerplugins/clang/constantparam.py b/compilerplugins/clang/constantparam.py
index 99ef69c8816a..db71c51b49d6 100755
--- a/compilerplugins/clang/constantparam.py
+++ b/compilerplugins/clang/constantparam.py
@@ -77,6 +77,9 @@ for callInfo, callValues in callDict.iteritems():
if callValue.startswith("get"): continue
if "operator=" in functionSig: continue
if "&&" in functionSig: continue
+ if callInfo[2] == "###0" and callValue == "InitData()": continue
+ if callInfo[2] == "###0" and callValue == "InitAggregate()": continue
+ if callValue == "shared_from_this()": continue
tmp3list.append((sourceLoc, functionSig, callInfo[3] + " " + callInfo[2], callValue))