CodeQL library for C/C++
codeql/cpp-all 0.6.0 ( changelog , source )

Member predicate Class :: hasCopyConstructor

Holds if this class has a copy constructor that is either explicitly declared (though possibly = delete) or is auto-generated, non-trivial and called from somewhere.

DEPRECATED: There is more than one reasonable definition of what it means to have a copy constructor, and we do not want to promote one particular definition by naming it with this predicate. Having a copy constructor could mean that such a member is declared or defined in the source or that it is callable by a particular caller. For C++11, there’s also a question of whether to include members that are defaulted or deleted.

predicate hasCopyConstructor ( )