Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
03d40110
Commit
03d40110
authored
Nov 13, 2018
by
Brad King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmStateSnapshot: Add method to get current directory snapshot
parent
5751a090
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
Source/cmStateSnapshot.cxx
Source/cmStateSnapshot.cxx
+6
-0
Source/cmStateSnapshot.h
Source/cmStateSnapshot.h
+1
-0
No files found.
Source/cmStateSnapshot.cxx
View file @
03d40110
...
@@ -66,6 +66,12 @@ bool cmStateSnapshot::IsValid() const
...
@@ -66,6 +66,12 @@ bool cmStateSnapshot::IsValid() const
:
false
;
:
false
;
}
}
cmStateSnapshot
cmStateSnapshot
::
GetBuildsystemDirectory
()
const
{
return
cmStateSnapshot
(
this
->
State
,
this
->
Position
->
BuildSystemDirectory
->
DirectoryEnd
);
}
cmStateSnapshot
cmStateSnapshot
::
GetBuildsystemDirectoryParent
()
const
cmStateSnapshot
cmStateSnapshot
::
GetBuildsystemDirectoryParent
()
const
{
{
cmStateSnapshot
snapshot
;
cmStateSnapshot
snapshot
;
...
...
Source/cmStateSnapshot.h
View file @
03d40110
...
@@ -37,6 +37,7 @@ public:
...
@@ -37,6 +37,7 @@ public:
std
::
vector
<
cmStateSnapshot
>
GetChildren
();
std
::
vector
<
cmStateSnapshot
>
GetChildren
();
bool
IsValid
()
const
;
bool
IsValid
()
const
;
cmStateSnapshot
GetBuildsystemDirectory
()
const
;
cmStateSnapshot
GetBuildsystemDirectoryParent
()
const
;
cmStateSnapshot
GetBuildsystemDirectoryParent
()
const
;
cmStateSnapshot
GetCallStackParent
()
const
;
cmStateSnapshot
GetCallStackParent
()
const
;
cmStateSnapshot
GetCallStackBottom
()
const
;
cmStateSnapshot
GetCallStackBottom
()
const
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment