From 6abbbe70150f4157dd3a858273a39603027ddcba Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 2 Feb 2017 11:49:20 +0100 Subject: Fix copy/move ctor check Change-Id: I2993d5809204098e29a7560d666fa1aafb024a89 --- compilerplugins/clang/stringconstant.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/stringconstant.cxx b/compilerplugins/clang/stringconstant.cxx index 2a1302e0ec5e..5bf439200d61 100644 --- a/compilerplugins/clang/stringconstant.cxx +++ b/compilerplugins/clang/stringconstant.cxx @@ -67,7 +67,7 @@ bool hasOverloads(FunctionDecl const * decl, unsigned arguments) { && f->getNumParams() >= arguments) { auto consDecl = dyn_cast(f); - if (consDecl && consDecl->isCopyConstructor()) { + if (consDecl && consDecl->isCopyOrMoveConstructor()) { continue; } ++n; -- cgit