فهرست منبع

cmStandardIncludes: Remove list include.

Include it only where used.
Stephen Kelly 10 سال پیش
والد
کامیت
af65da0aa9

+ 1 - 0
Source/CPack/cmCPackGenerator.cxx

@@ -25,6 +25,7 @@
 #include <cmsys/Glob.hxx>
 #include <cmsys/FStream.hxx>
 #include <algorithm>
+#include <list>
 
 #if defined(__HAIKU__)
 #include <FindDirectory.h>

+ 2 - 0
Source/CTest/cmCTestGlobalVC.h

@@ -14,6 +14,8 @@
 
 #include "cmCTestVC.h"
 
+#include <list>
+
 /** \class cmCTestGlobalVC
  * \brief Base class for handling globally-versioned trees
  *

+ 1 - 0
Source/CTest/cmCTestMultiProcessHandler.cxx

@@ -16,6 +16,7 @@
 #include "cmSystemTools.h"
 #include <stdlib.h>
 #include <stack>
+#include <list>
 #include <float.h>
 #include <cmsys/FStream.hxx>
 

+ 2 - 0
Source/CTest/cmCTestSVN.h

@@ -14,6 +14,8 @@
 
 #include "cmCTestGlobalVC.h"
 
+#include <list>
+
 /** \class cmCTestSVN
  * \brief Interaction with subversion command-line tool
  *

+ 2 - 0
Source/cmCommands.h

@@ -13,6 +13,8 @@
 #define cmCommands_h
 #include "cmStandardIncludes.h"
 
+#include <list>
+
 class cmCommand;
 /**
  * Global function to return all compiled in commands.

+ 2 - 0
Source/cmConditionEvaluator.h

@@ -15,6 +15,8 @@
 #include "cmCommand.h"
 #include "cmExpandedCommandArgument.h"
 
+#include <list>
+
 class cmConditionEvaluator
 {
 public:

+ 2 - 0
Source/cmFileLockPool.h

@@ -14,6 +14,8 @@
 
 #include "cmStandardIncludes.h"
 
+#include <list>
+
 class cmFileLockResult;
 class cmFileLock;
 

+ 1 - 0
Source/cmMakefile.cxx

@@ -38,6 +38,7 @@
 #include <cmsys/auto_ptr.hxx>
 
 #include <stack>
+#include <list>
 #include <ctype.h> // for isspace
 #include <assert.h>
 

+ 2 - 0
Source/cmQtAutoGenerators.h

@@ -14,6 +14,8 @@
 #ifndef cmQtAutoGenerators_h
 #define cmQtAutoGenerators_h
 
+#include <list>
+
 class cmGlobalGenerator;
 class cmMakefile;
 

+ 0 - 1
Source/cmStandardIncludes.h

@@ -53,7 +53,6 @@
 #include <algorithm>
 #include <functional>
 #include <map>
-#include <list>
 #include <set>
 
 // include the "c" string header

+ 2 - 0
Source/cmake.cxx

@@ -103,6 +103,8 @@
 
 #include <sys/stat.h> // struct stat
 
+#include <list>
+
 static bool cmakeCheckStampFile(const char* stampName);
 static bool cmakeCheckStampList(const char* stampName);