MCPcopy Create free account
hub / github.com/Kitware/CMake / Close

Method Close

Source/cmGeneratedFileStream.cxx:86–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool cmGeneratedFileStream::Close()
87{
88 // Save whether the temporary output file is valid before closing.
89 this->Okay = !this->fail();
90
91 // Close the temporary output file.
92 this->Stream::close(); // NOLINT(cmake-use-cmsys-fstream)
93
94 // Remove the temporary file (possibly by renaming to the real file).
95 return this->cmGeneratedFileStreamBase::Close();
96}
97
98void cmGeneratedFileStream::SetCopyIfDifferent(bool copy_if_different)
99{

Callers 15

testGeneratedFileStreamFunction · 0.80
WriteToFileMethod · 0.80
SaveCacheMethod · 0.80
SaveToFileMethod · 0.80
GenerateTargetMethod · 0.80
WriteSourcesMethod · 0.80
WriteTargetsMethod · 0.80
GenerateMethod · 0.80
OutputTopLevelProjectMethod · 0.80

Calls 4

CompressFileMethod · 0.95
RenameFileMethod · 0.95
cmStrCatFunction · 0.70
emptyMethod · 0.45

Tested by 2

testGeneratedFileStreamFunction · 0.64
EndCoverageLogFileMethod · 0.64