You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current wording in cppcoreguidelines-special-member-functions description and documentation encourages classes with a default or no-op destructor to be converted into rule of five classes.
Take:
myclass.hxx
class myclass
{
myclass();
~myclass();
}
myclass.cxx
myclass::~myclass()
{
}
clang-tidy on cxx yields: Use '= default' to define a trivial destructor (fix available)
clang-tidy on hxx yields: Class 'myclass' defines a destructor but does not define a copy constructor, a copy assignment operator, a move constructor or a move assignment operator