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

Method CreateIncludeFileSnapshot

Source/cmState.cxx:979–992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

977}
978
979cmStateSnapshot cmState::CreateIncludeFileSnapshot(
980 cmStateSnapshot const& originSnapshot, std::string const& fileName)
981{
982 cmStateDetail::PositionType pos =
983 this->SnapshotData.Push(originSnapshot.Position, *originSnapshot.Position);
984 pos->SnapshotType = cmStateEnums::IncludeFileType;
985 pos->Keep = true;
986 pos->ExecutionListFile = this->ExecutionListFiles.Push(
987 originSnapshot.Position->ExecutionListFile, fileName);
988 assert(originSnapshot.Position->Vars.IsValid());
989 pos->BuildSystemDirectory->CurrentScope = pos;
990 pos->PolicyScope = originSnapshot.Position->Policies;
991 return { this, pos };
992}
993
994cmStateSnapshot cmState::CreateVariableScopeSnapshot(
995 cmStateSnapshot const& originSnapshot)

Callers 1

IncludeScopeMethod · 0.80

Calls 2

PushMethod · 0.80
IsValidMethod · 0.45

Tested by

no test coverage detected