| 632 | }; |
| 633 | |
| 634 | cmMakefile::IncludeScope::IncludeScope(cmMakefile* mf, |
| 635 | std::string const& filenametoread, |
| 636 | bool noPolicyScope) |
| 637 | : FileScopeBase(mf) |
| 638 | , NoPolicyScope(noPolicyScope) |
| 639 | { |
| 640 | this->Makefile->Backtrace = this->Makefile->Backtrace.Push( |
| 641 | cmListFileContext::FromListFilePath(filenametoread)); |
| 642 | |
| 643 | this->Makefile->PushFunctionBlockerBarrier(); |
| 644 | |
| 645 | this->Makefile->StateSnapshot = |
| 646 | this->Makefile->GetState()->CreateIncludeFileSnapshot( |
| 647 | this->Makefile->StateSnapshot, filenametoread); |
| 648 | if (!this->NoPolicyScope) { |
| 649 | this->Makefile->PushPolicy(); |
| 650 | } |
| 651 | this->PushListFileVars(filenametoread); |
| 652 | } |
| 653 | |
| 654 | cmMakefile::IncludeScope::~IncludeScope() |
| 655 | { |
nothing calls this directly
no test coverage detected