Commit 942df88b authored by Stephen Kelly's avatar Stephen Kelly
Browse files

cmState: Rename CreateSnapshot method.

Leave the namespace open for other snapshot types.
parent da28f115
...@@ -1619,7 +1619,7 @@ void cmMakefile::AddSubDirectory(const std::string& srcPath, ...@@ -1619,7 +1619,7 @@ void cmMakefile::AddSubDirectory(const std::string& srcPath,
} }
cmState::Snapshot newSnapshot = this->GetState() cmState::Snapshot newSnapshot = this->GetState()
->CreateSnapshot(this->StateSnapshot); ->CreateBuildsystemDirectorySnapshot(this->StateSnapshot);
// create a new local generator and set its parent // create a new local generator and set its parent
cmLocalGenerator *lg2 = this->GetGlobalGenerator() cmLocalGenerator *lg2 = this->GetGlobalGenerator()
......
...@@ -672,7 +672,8 @@ cmState::Snapshot cmState::CreateBaseSnapshot() ...@@ -672,7 +672,8 @@ cmState::Snapshot cmState::CreateBaseSnapshot()
return cmState::Snapshot(this, pos); return cmState::Snapshot(this, pos);
} }
cmState::Snapshot cmState::CreateSnapshot(Snapshot originSnapshot) cmState::Snapshot
cmState::CreateBuildsystemDirectorySnapshot(Snapshot originSnapshot)
{ {
assert(originSnapshot.IsValid()); assert(originSnapshot.IsValid());
PositionType pos = this->ParentPositions.size(); PositionType pos = this->ParentPositions.size();
......
...@@ -58,7 +58,7 @@ public: ...@@ -58,7 +58,7 @@ public:
}; };
Snapshot CreateBaseSnapshot(); Snapshot CreateBaseSnapshot();
Snapshot CreateSnapshot(Snapshot originSnapshot); Snapshot CreateBuildsystemDirectorySnapshot(Snapshot originSnapshot);
enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL,STATIC, enum CacheEntryType{ BOOL=0, PATH, FILEPATH, STRING, INTERNAL,STATIC,
UNINITIALIZED }; UNINITIALIZED };
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment