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

Method ProcessDirectiveTocTree

Source/cmRST.cxx:406–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406void cmRST::ProcessDirectiveTocTree()
407{
408 // Process documents referenced by toctree directive.
409 for (std::string const& line : this->MarkupLines) {
410 if (!line.empty() && line[0] != ':') {
411 if (this->TocTreeLink.find(line)) {
412 std::string const& link = this->TocTreeLink.match(1);
413 this->ProcessInclude(link + ".rst", Include::TocTree);
414 } else {
415 this->ProcessInclude(line + ".rst", Include::TocTree);
416 }
417 }
418 }
419}
420
421void cmRST::UnindentLines(std::vector<std::string>& lines)
422{

Callers 1

ResetMethod · 0.95

Calls 4

ProcessIncludeMethod · 0.95
emptyMethod · 0.45
findMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected