CheckIO: Refactoring. Split out CheckIO::checkFormatString() from CheckIO::checkWrongPrintfScanfArguments().
This commit is contained in:
parent
0849ad4707
commit
37d9a95ef1
1489
lib/checkio.cpp
1489
lib/checkio.cpp
File diff suppressed because it is too large
Load Diff
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue