| 597 | } |
| 598 | |
| 599 | void 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 | |
| 621 | void cmGlobalFastbuildGenerator::WriteVariable(std::string const& key, |
| 622 | std::string const& value, |
no test coverage detected