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

Method BuildsystemFileScope

Source/cmMakefile.cxx:1504–1525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1502{
1503public:
1504 BuildsystemFileScope(cmMakefile* mf)
1505 : FileScopeBase(mf)
1506 {
1507 std::string currentStart =
1508 this->Makefile->GetCMakeInstance()->GetCMakeListFile(
1509 this->Makefile->StateSnapshot.GetDirectory().GetCurrentSource());
1510 this->Makefile->StateSnapshot.SetListFile(currentStart);
1511 this->Makefile->StateSnapshot =
1512 this->Makefile->StateSnapshot.GetState()->CreatePolicyScopeSnapshot(
1513 this->Makefile->StateSnapshot);
1514 this->Makefile->PushFunctionBlockerBarrier();
1515 this->PushListFileVars(currentStart);
1516
1517 this->GG = mf->GetGlobalGenerator();
1518 this->CurrentMakefile = this->GG->GetCurrentMakefile();
1519 this->Snapshot = this->GG->GetCMakeInstance()->GetCurrentSnapshot();
1520 this->GG->GetCMakeInstance()->SetCurrentSnapshot(this->Snapshot);
1521 this->GG->SetCurrentMakefile(mf);
1522#if !defined(CMAKE_BOOTSTRAP)
1523 this->GG->GetFileLockPool().PushFileScope();
1524#endif
1525 }
1526
1527 ~BuildsystemFileScope()
1528 {

Callers

nothing calls this directly

Calls 14

GetCMakeListFileMethod · 0.80
SetListFileMethod · 0.80
PushListFileVarsMethod · 0.80
GetCurrentMakefileMethod · 0.80
GetCurrentSnapshotMethod · 0.80
SetCurrentSnapshotMethod · 0.80
SetCurrentMakefileMethod · 0.80
PushFileScopeMethod · 0.80
GetCMakeInstanceMethod · 0.45
GetDirectoryMethod · 0.45

Tested by

no test coverage detected