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

Method IncludeScope

Source/cmMakefile.cxx:634–652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632};
633
634cmMakefile::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
654cmMakefile::IncludeScope::~IncludeScope()
655{

Callers

nothing calls this directly

Calls 6

PushMethod · 0.80
PushListFileVarsMethod · 0.80
GetStateMethod · 0.45
PushPolicyMethod · 0.45

Tested by

no test coverage detected