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

Function nullPointer_std_ofstream_open

test/cfg/std.cpp:513–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513void nullPointer_std_ofstream_open(std::ofstream &os, const std::string &strFileName, const char* filename, std::ios_base::openmode mode)
514{
515 // cppcheck-suppress nullPointer
516 os.open(nullptr, mode);
517 os.open(filename, mode);
518 os.open(strFileName, mode);
519 // cppcheck-suppress nullPointer
520 os.open(nullptr);
521 os.open(filename);
522 os.open(strFileName);
523}
524
525void nullPointer_std_fstream_open(std::fstream &fs, const std::string &strFileName, const char* filename, std::ios_base::openmode mode)
526{

Callers

nothing calls this directly

Calls 1

openMethod · 0.45

Tested by

no test coverage detected