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

Function nullPointer_std_filebuf_open

test/cfg/std.cpp:505–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

503}
504
505void nullPointer_std_filebuf_open(std::filebuf &fb, const std::string &strFileName, const char* filename, std::ios_base::openmode mode)
506{
507 // cppcheck-suppress nullPointer
508 (void)fb.open(nullptr, mode);
509 (void)fb.open(filename, mode);
510 (void)fb.open(strFileName, mode);
511}
512
513void nullPointer_std_ofstream_open(std::ofstream &os, const std::string &strFileName, const char* filename, std::ios_base::openmode mode)
514{

Callers

nothing calls this directly

Calls 1

openMethod · 0.45

Tested by

no test coverage detected