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

Method OpenRulesFileStream

Source/cmGlobalNinjaGenerator.cxx:1145–1161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1143}
1144
1145bool cmGlobalNinjaGenerator::OpenRulesFileStream()
1146{
1147 if (!this->OpenFileStream(this->RulesFileStream,
1148 cmGlobalNinjaGenerator::NINJA_RULES_FILE)) {
1149 return false;
1150 }
1151
1152 // Write comment about this file.
1153 /* clang-format off */
1154 *this->RulesFileStream
1155 << "# This file contains all the rules used to get the outputs files\n"
1156 << "# built from the input files.\n"
1157 << "# It is included in the main '" << NINJA_BUILD_FILE << "'.\n\n"
1158 ;
1159 /* clang-format on */
1160 return true;
1161}
1162
1163void cmGlobalNinjaGenerator::CloseRulesFileStream()
1164{

Callers 1

GenerateMethod · 0.95

Calls 1

OpenFileStreamMethod · 0.95

Tested by

no test coverage detected