summaryrefslogtreecommitdiff
path: root/compilerplugins
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-04-11 10:17:02 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-04-11 13:08:19 +0200
commitf762a7772b1faa5855b07ca78b221edbaba53b59 (patch)
tree58ab1f480ca5c4a0fa8f5d6565fde800557d9069 /compilerplugins
parenta94ef79826fdb52bcde2d0ee8b76da6df46962f2 (diff)
loplugin constantparam, ignore variadic methods
Change-Id: Ieabb020406d5a381dd9cbace3b1e4cc434857d54
Diffstat (limited to 'compilerplugins')
-rw-r--r--compilerplugins/clang/constantparam.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/compilerplugins/clang/constantparam.cxx b/compilerplugins/clang/constantparam.cxx
index f5a3d5317dd1..d748919b0c7d 100644
--- a/compilerplugins/clang/constantparam.cxx
+++ b/compilerplugins/clang/constantparam.cxx
@@ -97,6 +97,8 @@ void ConstantParam::addToCallSet(const FunctionDecl* functionDecl, int paramInde
if (!functionDecl->getNameInfo().getLoc().isValid())
return;
+ if (functionDecl->isVariadic())
+ return;
if (ignoreLocation(functionDecl))
return;
// ignore stuff that forms part of the stable URE interface