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. // can't be a simplified check .. the 'sizeof' is used.
checkClass.checkMemset(); checkClass.checkMemset();
checkClass.checkUnsafeClassDivZero(); 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.constructors();
checkClass.operatorEq(); checkClass.operatorEq();
checkClass.privateFunctions(); checkClass.privateFunctions();
@ -81,19 +71,23 @@ public:
checkClass.initializerListOrder(); checkClass.initializerListOrder();
checkClass.initializationListUsage(); checkClass.initializationListUsage();
checkClass.checkSelfInitialization(); checkClass.checkSelfInitialization();
checkClass.virtualDestructor(); checkClass.virtualDestructor();
checkClass.checkConst(); checkClass.checkConst();
checkClass.copyconstructors(); checkClass.copyconstructors();
checkClass.checkVirtualFunctionCallInConstructor(); checkClass.checkVirtualFunctionCallInConstructor();
checkClass.checkDuplInheritedMembers(); checkClass.checkDuplInheritedMembers();
checkClass.checkExplicitConstructors(); checkClass.checkExplicitConstructors();
checkClass.checkCopyCtorAndEqOperator(); checkClass.checkCopyCtorAndEqOperator();
checkClass.checkOverride(); 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 */ /** @brief %Check that all class constructors are ok */
void constructors(); void constructors();