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

Method incompatibleFileOpenError

lib/checkio.cpp:427–431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

425}
426
427void CheckIOImpl::incompatibleFileOpenError(const Token *tok, const std::string &filename)
428{
429 reportError(tok, Severity::warning,
430 "incompatibleFileOpen", "The file '" + filename + "' is opened for read and write access at the same time on different streams", CWE664, Certainty::normal);
431}
432
433
434//---------------------------------------------------------------------------

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected