CheckIO: Refactoring. Split out CheckIO::checkFormatString() from CheckIO::checkWrongPrintfScanfArguments().

This commit is contained in:
Daniel Marjamäki 2015-10-10 20:08:15 +02:00
parent 0849ad4707
commit 37d9a95ef1
2 changed files with 755 additions and 740 deletions

File diff suppressed because it is too large Load Diff

View File

@ -94,6 +94,12 @@ private:
ArgumentInfo operator = (const ArgumentInfo &); // not implemented ArgumentInfo operator = (const ArgumentInfo &); // not implemented
}; };
void checkFormatString(const Token * const tok,
const Token * const formatStringTok,
const Token * argListTok,
const bool scan,
const bool scanf_s);
// Reporting errors.. // Reporting errors..
void coutCerrMisusageError(const Token* tok, const std::string& streamName); void coutCerrMisusageError(const Token* tok, const std::string& streamName);
void fflushOnInputStreamError(const Token *tok, const std::string &varname); void fflushOnInputStreamError(const Token *tok, const std::string &varname);