[clang-tidy] add support for move constructor and move assignment operator in modernize-use-equals-default
?
#122633
Labels
modernize-use-equals-default
?
#122633
According to https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#c80-use-default-if-you-have-to-be-explicit-about-using-the-default-semantics, we should not define any of special member functions which has semantics same as
=default
.modernize-use-equals-default
support all special member functions except move constructor and move assignment operator for now, it's mentioned in it's doc but no specific reason was given in code or commit messages.modernize-use-equals-default
's doc website: https://clang.llvm.org/extra/clang-tidy/checks/modernize/use-equals-default.htmlif this support can be added, please let me know and i can pull a request for it.
The text was updated successfully, but these errors were encountered: