diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-02-02 11:49:20 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-02-02 11:49:20 +0100 |
commit | 6abbbe70150f4157dd3a858273a39603027ddcba (patch) | |
tree | e928fa9637761848cf9dd738576e790fa44f0c74 /compilerplugins/clang | |
parent | 37b7a86510d59802e06f07a4f9cc8032c3375dce (diff) |
Fix copy/move ctor check
Change-Id: I2993d5809204098e29a7560d666fa1aafb024a89
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/stringconstant.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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<CXXConstructorDecl>(f); - if (consDecl && consDecl->isCopyConstructor()) { + if (consDecl && consDecl->isCopyOrMoveConstructor()) { continue; } ++n; |