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

Method ProcessInclude

Source/cmRST.cxx:359–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

357}
358
359bool cmRST::ProcessInclude(std::string file, Include type)
360{
361 bool found = false;
362 if (this->IncludeDepth < 10) {
363 cmRST r(this->OS, this->DocRoot);
364 r.IncludeDepth = this->IncludeDepth + 1;
365 r.OutputLinePending = this->OutputLinePending;
366 if (type != Include::TocTree) {
367 r.Replace = this->Replace;
368 }
369 if (file[0] == '/') {
370 file = this->DocRoot + file;
371 } else {
372 file = this->DocDir + "/" + file;
373 }
374 found = r.ProcessFile(file, type == Include::Module);
375 if (type != Include::TocTree) {
376 this->Replace = r.Replace;
377 }
378 this->OutputLinePending = r.OutputLinePending;
379 }
380 return found;
381}
382
383void cmRST::ProcessDirectiveParsedLiteral()
384{

Callers 2

ProcessLineMethod · 0.95

Calls 1

ProcessFileMethod · 0.80

Tested by

no test coverage detected