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

Method CreateFunctionCallSnapshot

Source/cmState.cxx:945–962  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

943}
944
945cmStateSnapshot cmState::CreateFunctionCallSnapshot(
946 cmStateSnapshot const& originSnapshot, std::string const& fileName)
947{
948 cmStateDetail::PositionType pos =
949 this->SnapshotData.Push(originSnapshot.Position, *originSnapshot.Position);
950 pos->ScopeParent = originSnapshot.Position;
951 pos->SnapshotType = cmStateEnums::FunctionCallType;
952 pos->Keep = false;
953 pos->ExecutionListFile = this->ExecutionListFiles.Push(
954 originSnapshot.Position->ExecutionListFile, fileName);
955 pos->BuildSystemDirectory->CurrentScope = pos;
956 pos->PolicyScope = originSnapshot.Position->Policies;
957 assert(originSnapshot.Position->Vars.IsValid());
958 cmLinkedTree<cmDefinitions>::iterator origin = originSnapshot.Position->Vars;
959 pos->Parent = origin;
960 pos->Vars = this->VarTree.Push(origin);
961 return { this, pos };
962}
963
964cmStateSnapshot cmState::CreateMacroCallSnapshot(
965 cmStateSnapshot const& originSnapshot, std::string const& fileName)

Callers 1

PushFunctionScopeMethod · 0.80

Calls 2

PushMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected