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

Method PrintHelpOnePolicy

Source/cmDocumentation.cxx:672–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

670}
671
672bool cmDocumentation::PrintHelpOnePolicy(std::ostream& os)
673{
674 std::string pname = this->CurrentArgument;
675 std::vector<std::string> files;
676 if (this->PrintFiles(os, cmStrCat("policy/", pname))) {
677 return true;
678 }
679
680 // Argument was not a policy. Complain.
681 os << "Argument \"" << this->CurrentArgument
682 << "\" to --help-policy is not a CMake policy.\n";
683 return false;
684}
685
686bool cmDocumentation::PrintHelpListPolicies(std::ostream& os)
687{

Callers 1

PrintDocumentationMethod · 0.95

Calls 2

PrintFilesMethod · 0.95
cmStrCatFunction · 0.70

Tested by

no test coverage detected