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

Method useClosedFileError

lib/checkio.cpp:406–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406void CheckIOImpl::useClosedFileError(const Token *tok)
407{
408 reportError(tok, Severity::error,
409 "useClosedFile", "Used file that is not opened.", CWE910, Certainty::normal);
410}
411
412void CheckIOImpl::fcloseInLoopConditionError(const Token *tok, const std::string &varname)
413{

Callers 1

getErrorMessagesMethod · 0.80

Calls 1

reportErrorFunction · 0.70

Tested by

no test coverage detected