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

Function nullPointer_std_fstream_open

test/cfg/std.cpp:525–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

523}
524
525void nullPointer_std_fstream_open(std::fstream &fs, const std::string &strFileName, const char* filename, std::ios_base::openmode mode)
526{
527 // cppcheck-suppress nullPointer
528 fs.open(nullptr, mode);
529 fs.open(filename, mode);
530 fs.open(strFileName, mode);
531 // cppcheck-suppress nullPointer
532 fs.open(nullptr);
533 fs.open(filename);
534 fs.open(strFileName);
535}
536
537void nullPointer_std_ifstream_open(std::ifstream &is, const std::string &strFileName, const char* filename, std::ios_base::openmode mode)
538{

Callers

nothing calls this directly

Calls 1

openMethod · 0.45

Tested by

no test coverage detected