Commit 03d40110 authored by Brad King's avatar Brad King

cmStateSnapshot: Add method to get current directory snapshot

parent 5751a090
......@@ -66,6 +66,12 @@ bool cmStateSnapshot::IsValid() const
: false;
}
cmStateSnapshot cmStateSnapshot::GetBuildsystemDirectory() const
{
return cmStateSnapshot(this->State,
this->Position->BuildSystemDirectory->DirectoryEnd);
}
cmStateSnapshot cmStateSnapshot::GetBuildsystemDirectoryParent() const
{
cmStateSnapshot snapshot;
......
......@@ -37,6 +37,7 @@ public:
std::vector<cmStateSnapshot> GetChildren();
bool IsValid() const;
cmStateSnapshot GetBuildsystemDirectory() const;
cmStateSnapshot GetBuildsystemDirectoryParent() const;
cmStateSnapshot GetCallStackParent() const;
cmStateSnapshot GetCallStackBottom() const;
......
Markdown is supported
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