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

Method WriteComment

Source/cmGlobalFastbuildGenerator.cxx:599–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599void cmGlobalFastbuildGenerator::WriteComment(std::string const& comment,
600 int indent)
601{
602 if (comment.empty()) {
603 return;
604 }
605
606 std::string::size_type lpos = 0;
607 std::string::size_type rpos;
608 *this->BuildFileStream << "\n";
609 Indent(indent);
610 *this->BuildFileStream << "/////////////////////////////////////////////\n";
611 while ((rpos = comment.find('\n', lpos)) != std::string::npos) {
612 Indent(indent);
613 *this->BuildFileStream << "// " << comment.substr(lpos, rpos - lpos)
614 << "\n";
615 lpos = rpos + 1;
616 }
617 Indent(indent);
618 *this->BuildFileStream << "// " << comment.substr(lpos) << "\n\n";
619}
620
621void cmGlobalFastbuildGenerator::WriteVariable(std::string const& key,
622 std::string const& value,

Callers 1

WriteTargetsMethod · 0.95

Calls 3

emptyMethod · 0.45
findMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected