summaryrefslogtreecommitdiffstats
path: root/Source/cmState.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2016-10-18 19:28:46 (GMT)
committerStephen Kelly <steveire@gmail.com>2016-10-18 19:28:46 (GMT)
commit0060391dffe824526b1f359db79c66c55e53d0c5 (patch)
tree04d79d3c574917b46364b8d3259f49690bed025f /Source/cmState.h
parent5bc964eddbee7936f05ab758c7ac417fffbe4a3e (diff)
downloadCMake-0060391dffe824526b1f359db79c66c55e53d0c5.zip
CMake-0060391dffe824526b1f359db79c66c55e53d0c5.tar.gz
CMake-0060391dffe824526b1f359db79c66c55e53d0c5.tar.bz2
cmState: Move SnapshotType enum to separate namespace
Diffstat (limited to 'Source/cmState.h')
-rw-r--r--Source/cmState.h29
1 files changed, 16 insertions, 13 deletions
diff --git a/Source/cmState.h b/Source/cmState.h
index 4fcbb00..8f0b5ee 100644
--- a/Source/cmState.h
+++ b/Source/cmState.h
@@ -30,6 +30,21 @@ struct PolicyStackEntry;
typedef cmLinkedTree<cmStateDetail::SnapshotDataType>::iterator PositionType;
}
+namespace cmStateEnums {
+
+enum SnapshotType
+{
+ BaseType,
+ BuildsystemDirectoryType,
+ FunctionCallType,
+ MacroCallType,
+ IncludeFileType,
+ InlineListFileType,
+ PolicyScopeType,
+ VariableScopeType
+};
+}
+
class cmState
{
@@ -37,18 +52,6 @@ public:
cmState();
~cmState();
- enum SnapshotType
- {
- BaseType,
- BuildsystemDirectoryType,
- FunctionCallType,
- MacroCallType,
- IncludeFileType,
- InlineListFileType,
- PolicyScopeType,
- VariableScopeType
- };
-
class Directory;
class Snapshot
@@ -75,7 +78,7 @@ public:
Snapshot GetBuildsystemDirectoryParent() const;
Snapshot GetCallStackParent() const;
Snapshot GetCallStackBottom() const;
- SnapshotType GetType() const;
+ cmStateEnums::SnapshotType GetType() const;
void SetPolicy(cmPolicies::PolicyID id, cmPolicies::PolicyStatus status);
cmPolicies::PolicyStatus GetPolicy(cmPolicies::PolicyID id) const;