If cppcheck (current head of master) is run with "inconclusive", if there is a virtual method in the base class a protected non virtual destructor will trigger a virtualDestructor error.
From what I seen, changing this would just require to check destructor access specifier in CheckClass::virtualDestructor().
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Based on Cpp Core Guidelines, the good practice for base classes is to have either a public virtual destructor or a proteted non-virtual destructor (ref: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rc-dtor-virtual).
If cppcheck (current head of master) is run with "inconclusive", if there is a virtual method in the base class a protected non virtual destructor will trigger a virtualDestructor error.
From what I seen, changing this would just require to check destructor access specifier in CheckClass::virtualDestructor().
Yeah it is probably a small tweak. Can you open a github pull request?
It will propably take some days before I have the time do do a proper pull request but there should be no problem.