| 943 | } |
| 944 | |
| 945 | cmStateSnapshot 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 | |
| 964 | cmStateSnapshot cmState::CreateMacroCallSnapshot( |
| 965 | cmStateSnapshot const& originSnapshot, std::string const& fileName) |
no test coverage detected