cmState: Move SnapshotDataType to separate namespace

This commit is contained in:
Stephen Kelly 2016-10-18 21:28:45 +02:00
parent 1205f75e3b
commit cb40af5d6f
2 changed files with 5 additions and 4 deletions

View File

@ -25,7 +25,7 @@ static std::string const kBUILDSYSTEM_TARGETS = "BUILDSYSTEM_TARGETS";
static std::string const kSOURCE_DIR = "SOURCE_DIR";
static std::string const kSUBDIRECTORIES = "SUBDIRECTORIES";
struct cmState::SnapshotDataType
struct cmStateDetail::SnapshotDataType
{
cmState::PositionType ScopeParent;
cmState::PositionType DirectoryParent;

View File

@ -25,15 +25,16 @@ class cmPropertyDefinition;
namespace cmStateDetail {
struct BuildsystemDirectoryStateType;
struct SnapshotDataType;
}
class cmState
{
struct SnapshotDataType;
struct PolicyStackEntry;
typedef cmLinkedTree<SnapshotDataType>::iterator PositionType;
typedef cmLinkedTree<cmStateDetail::SnapshotDataType>::iterator PositionType;
friend class Snapshot;
friend struct cmStateDetail::BuildsystemDirectoryStateType;
friend struct cmStateDetail::SnapshotDataType;
public:
cmState();
@ -341,7 +342,7 @@ private:
cmLinkedTree<std::string> ExecutionListFiles;
cmLinkedTree<PolicyStackEntry> PolicyStack;
cmLinkedTree<SnapshotDataType> SnapshotData;
cmLinkedTree<cmStateDetail::SnapshotDataType> SnapshotData;
cmLinkedTree<cmDefinitions> VarTree;
std::string SourceDirectory;