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

Method coutCerrMisusageError

lib/checkio.cpp:83–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void CheckIOImpl::coutCerrMisusageError(const Token* tok, const std::string& streamName)
84{
85 reportError(tok, Severity::error, "coutCerrMisusage", "Invalid usage of output stream: '<< std::" + streamName + "'.", CWE398, Certainty::normal);
86}
87
88//---------------------------------------------------------------------------
89// fflush(stdin) <- fflush only applies to output streams in ANSI C

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected