| 1502 | { |
| 1503 | public: |
| 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 | { |
nothing calls this directly
no test coverage detected