CheckClass: Moved checks to 'normal'

This commit is contained in:
Daniel Marjamäki 2019-03-09 21:38:36 +01:00
parent 69c05acd3b
commit ea9b2032c1
1 changed files with 7 additions and 13 deletions

View File

@ -62,16 +62,6 @@ public:
// can't be a simplified check .. the 'sizeof' is used.
checkClass.checkMemset();
checkClass.checkUnsafeClassDivZero();
}
/** @brief Run checks on the simplified token list */
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
if (tokenizer->isC())
return;
CheckClass checkClass(tokenizer, settings, errorLogger);
// Coding style checks
checkClass.constructors();
checkClass.operatorEq();
checkClass.privateFunctions();
@ -81,19 +71,23 @@ public:
checkClass.initializerListOrder();
checkClass.initializationListUsage();
checkClass.checkSelfInitialization();
checkClass.virtualDestructor();
checkClass.checkConst();
checkClass.copyconstructors();
checkClass.checkVirtualFunctionCallInConstructor();
checkClass.checkDuplInheritedMembers();
checkClass.checkExplicitConstructors();
checkClass.checkCopyCtorAndEqOperator();
checkClass.checkOverride();
}
/** @brief Run checks on the simplified token list */
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
(void)tokenizer;
(void)settings;
(void)errorLogger;
}
/** @brief %Check that all class constructors are ok */
void constructors();