MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / fflushOnInputStreamError

Method fflushOnInputStreamError

lib/checkio.cpp:382–386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382void CheckIOImpl::fflushOnInputStreamError(const Token *tok, const std::string &varname)
383{
384 reportError(tok, Severity::portability,
385 "fflushOnInputStream", "fflush() called on input stream '" + varname + "' may result in undefined behaviour on non-linux systems.", CWE398, Certainty::normal);
386}
387
388void CheckIOImpl::ioWithoutPositioningError(const Token *tok)
389{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected