summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-18 19:28:45 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-10-18 19:28:45 (GMT)
commit1205f75e3bd9e5ff7051459cac4594ea7c3a9bf9 (patch)
tree833b56b9b8d93806248e4fee54850400ed83d421 /Source/cmState.h
parent163991dd83cac6afa0f6dfeec41d885e8b880fc8 (diff)
downloadCMake-1205f75e3bd9e5ff7051459cac4594ea7c3a9bf9.zip
CMake-1205f75e3bd9e5ff7051459cac4594ea7c3a9bf9.tar.gz
CMake-1205f75e3bd9e5ff7051459cac4594ea7c3a9bf9.tar.bz2
cmState: Move nested struct into separate top-level namespace
Add a friend declaration to give the struct access to cmState::PositionType. This will be removed when that type is also extracted.
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index feed1c7..24db08c 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -23,13 +23,17 @@ class cmCommand;
class cmListFileBacktrace;
class cmPropertyDefinition;
+namespace cmStateDetail {
+struct BuildsystemDirectoryStateType;
+}
+
class cmState
{
struct SnapshotDataType;
struct PolicyStackEntry;
- struct BuildsystemDirectoryStateType;
typedef cmLinkedTree<SnapshotDataType>::iterator PositionType;
friend class Snapshot;
+ friend struct cmStateDetail::BuildsystemDirectoryStateType;
public:
cmState();
@@ -117,7 +121,8 @@ public:
class Directory
{
- Directory(cmLinkedTree<BuildsystemDirectoryStateType>::iterator iter,
+ Directory(cmLinkedTree<
+ cmStateDetail::BuildsystemDirectoryStateType>::iterator iter,
Snapshot const& snapshot);
public:
@@ -173,7 +178,8 @@ public:
void ComputeRelativePathTopBinary();
private:
- cmLinkedTree<BuildsystemDirectoryStateType>::iterator DirectoryState;
+ cmLinkedTree<cmStateDetail::BuildsystemDirectoryStateType>::iterator
+ DirectoryState;
Snapshot Snapshot_;
friend class Snapshot;
};
@@ -329,7 +335,8 @@ private:
cmPropertyMap GlobalProperties;
cmCacheManager* CacheManager;
- cmLinkedTree<BuildsystemDirectoryStateType> BuildsystemDirectory;
+ cmLinkedTree<cmStateDetail::BuildsystemDirectoryStateType>
+ BuildsystemDirectory;
cmLinkedTree<std::string> ExecutionListFiles;