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

Method OpenBuildFileStreams

Source/cmGlobalNinjaGenerator.cxx:1075–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1073// Private methods
1074
1075bool cmGlobalNinjaGenerator::OpenBuildFileStreams()
1076{
1077 if (!this->OpenFileStream(this->BuildFileStream,
1078 cmGlobalNinjaGenerator::NINJA_BUILD_FILE)) {
1079 return false;
1080 }
1081
1082 // Write a comment about this file.
1083 *this->BuildFileStream
1084 << "# This file contains all the build statements describing the\n"
1085 << "# compilation DAG.\n\n";
1086
1087 return true;
1088}
1089
1090bool cmGlobalNinjaGenerator::OpenFileStream(
1091 std::unique_ptr<cmGeneratedFileStream>& stream, std::string const& name)

Callers 1

GenerateMethod · 0.95

Calls 4

OpenFileStreamMethod · 0.95
NinjaOutputPathMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected