Moved all simplified CheckOther checks from simplified to normal checking

This commit is contained in:
Daniel Marjamäki 2019-03-06 06:33:51 +01:00
parent 06c2019676
commit 2900690881
1 changed files with 7 additions and 9 deletions

View File

@ -86,26 +86,24 @@ public:
checkOther.checkComparePointers();
checkOther.checkIncompleteStatement();
checkOther.checkPipeParameterSize();
}
/** @brief Run checks against the simplified token list */
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
CheckOther checkOther(tokenizer, settings, errorLogger);
// Checks
checkOther.clarifyCalculation();
checkOther.clarifyStatement();
checkOther.checkPassByReference();
checkOther.checkCastIntToCharAndBack();
checkOther.checkMisusedScopedObject();
checkOther.checkInvalidFree();
checkOther.checkRedundantCopy();
checkOther.checkComparisonFunctionIsAlwaysTrueOrFalse();
checkOther.checkAccessOfMovedVariable();
}
/** @brief Run checks against the simplified token list */
void runSimplifiedChecks(const Tokenizer *tokenizer, const Settings *settings, ErrorLogger *errorLogger) OVERRIDE {
(void)tokenizer;
(void)settings;
(void)errorLogger;
}
/** @brief Clarify calculation for ".. a * b ? .." */
void clarifyCalculation();