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

Method Save

Source/cmQtAutoGenInitializer.cxx:289–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

287}
288
289bool InfoWriter::Save(std::string const& filename)
290{
291 cmGeneratedFileStream fileStream;
292 fileStream.SetCopyIfDifferent(true);
293 fileStream.Open(filename, false, true);
294 if (!fileStream) {
295 return false;
296 }
297
298 Json::StyledStreamWriter jsonWriter;
299 try {
300 jsonWriter.write(fileStream, this->Value_);
301 } catch (...) {
302 return false;
303 }
304
305 return fileStream.Close();
306}
307
308cmQtAutoGen::ConfigStrings<std::vector<std::string>> generateListOptions(
309 cmQtAutoGen::ConfigStrings<cmQtAutoGen::CompilerFeaturesHandle> const&

Callers 2

SetupWriteAutogenInfoMethod · 0.80
SetupWriteRccInfoMethod · 0.80

Calls 4

SetCopyIfDifferentMethod · 0.80
CloseMethod · 0.80
OpenMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected