From 27be1d815298ebf343823ff99baa35484da92a85 Mon Sep 17 00:00:00 2001
From: Stephen Kelly <steveire@gmail.com>
Date: Tue, 18 Oct 2016 21:28:48 +0200
Subject: cmState: Move extracted declarations to a separate file

---
 Source/cmState.h      | 46 +-----------------------------------------
 Source/cmStateTypes.h | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+), 45 deletions(-)
 create mode 100644 Source/cmStateTypes.h

diff --git a/Source/cmState.h b/Source/cmState.h
index c7cf756..938c90b 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -12,6 +12,7 @@
 #include "cmProperty.h"
 #include "cmPropertyDefinitionMap.h"
 #include "cmPropertyMap.h"
+#include "cmStateTypes.h"
 
 #include <map>
 #include <set>
@@ -23,51 +24,6 @@ class cmCommand;
 class cmListFileBacktrace;
 class cmPropertyDefinition;
 
-namespace cmStateDetail {
-struct BuildsystemDirectoryStateType;
-struct SnapshotDataType;
-struct PolicyStackEntry;
-typedef cmLinkedTree<cmStateDetail::SnapshotDataType>::iterator PositionType;
-}
-
-namespace cmStateEnums {
-
-enum SnapshotType
-{
-  BaseType,
-  BuildsystemDirectoryType,
-  FunctionCallType,
-  MacroCallType,
-  IncludeFileType,
-  InlineListFileType,
-  PolicyScopeType,
-  VariableScopeType
-};
-
-enum TargetType
-{
-  EXECUTABLE,
-  STATIC_LIBRARY,
-  SHARED_LIBRARY,
-  MODULE_LIBRARY,
-  OBJECT_LIBRARY,
-  UTILITY,
-  GLOBAL_TARGET,
-  INTERFACE_LIBRARY,
-  UNKNOWN_LIBRARY
-};
-enum CacheEntryType
-{
-  BOOL = 0,
-  PATH,
-  FILEPATH,
-  STRING,
-  INTERNAL,
-  STATIC,
-  UNINITIALIZED
-};
-}
-
 class cmStateDirectory;
 class cmStateSnapshot;
 
diff --git a/Source/cmStateTypes.h b/Source/cmStateTypes.h
new file mode 100644
index 0000000..75f9e60
--- /dev/null
+++ b/Source/cmStateTypes.h
@@ -0,0 +1,55 @@
+/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
+   file Copyright.txt or https://cmake.org/licensing for details.  */
+
+#ifndef cmStateTypes_h
+#define cmStateTypes_h
+
+#include "cmLinkedTree.h"
+
+namespace cmStateDetail {
+struct BuildsystemDirectoryStateType;
+struct SnapshotDataType;
+struct PolicyStackEntry;
+typedef cmLinkedTree<cmStateDetail::SnapshotDataType>::iterator PositionType;
+}
+
+namespace cmStateEnums {
+
+enum SnapshotType
+{
+  BaseType,
+  BuildsystemDirectoryType,
+  FunctionCallType,
+  MacroCallType,
+  IncludeFileType,
+  InlineListFileType,
+  PolicyScopeType,
+  VariableScopeType
+};
+
+enum TargetType
+{
+  EXECUTABLE,
+  STATIC_LIBRARY,
+  SHARED_LIBRARY,
+  MODULE_LIBRARY,
+  OBJECT_LIBRARY,
+  UTILITY,
+  GLOBAL_TARGET,
+  INTERFACE_LIBRARY,
+  UNKNOWN_LIBRARY
+};
+
+enum CacheEntryType
+{
+  BOOL = 0,
+  PATH,
+  FILEPATH,
+  STRING,
+  INTERNAL,
+  STATIC,
+  UNINITIALIZED
+};
+}
+
+#endif
-- 
cgit v0.12