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

Method CreateVariableScopeSnapshot

Source/cmState.cxx:994–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

992}
993
994cmStateSnapshot cmState::CreateVariableScopeSnapshot(
995 cmStateSnapshot const& originSnapshot)
996{
997 cmStateDetail::PositionType pos =
998 this->SnapshotData.Push(originSnapshot.Position, *originSnapshot.Position);
999 pos->ScopeParent = originSnapshot.Position;
1000 pos->SnapshotType = cmStateEnums::VariableScopeType;
1001 pos->Keep = false;
1002 pos->BuildSystemDirectory->CurrentScope = pos;
1003 pos->PolicyScope = originSnapshot.Position->Policies;
1004 assert(originSnapshot.Position->Vars.IsValid());
1005
1006 cmLinkedTree<cmDefinitions>::iterator origin = originSnapshot.Position->Vars;
1007 pos->Parent = origin;
1008 pos->Vars = this->VarTree.Push(origin);
1009 assert(pos->Vars.IsValid());
1010 return { this, pos };
1011}
1012
1013cmStateSnapshot cmState::CreateInlineListFileSnapshot(
1014 cmStateSnapshot const& originSnapshot, std::string const& fileName)

Callers 2

PushScopeMethod · 0.80
VariablePushPopMethod · 0.80

Calls 2

PushMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected