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

Method writeReadOnlyFileError

lib/checkio.cpp:400–404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398}
399
400void CheckIOImpl::writeReadOnlyFileError(const Token *tok)
401{
402 reportError(tok, Severity::error,
403 "writeReadOnlyFile", "Write operation on a file that was opened only for reading.", CWE664, Certainty::normal);
404}
405
406void CheckIOImpl::useClosedFileError(const Token *tok)
407{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected