From dd6d7992d6f16133fafa7a617cf5fa0ba1ae37cc Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 10 May 2017 19:19:10 +0200 Subject: loplugin:constantparam Change-Id: I67d74072c776c32a1f91df94c621efe180baf5dc Reviewed-on: https://gerrit.libreoffice.org/37481 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/constantparam.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'compilerplugins/clang') 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)) -- cgit