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

Method readWriteOnlyFileError

lib/checkio.cpp:394–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394void CheckIOImpl::readWriteOnlyFileError(const Token *tok)
395{
396 reportError(tok, Severity::error,
397 "readWriteOnlyFile", "Read operation on a file that was opened only for writing.", CWE664, Certainty::normal);
398}
399
400void CheckIOImpl::writeReadOnlyFileError(const Token *tok)
401{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected