From af65da0aa97f20947f93ddcf9872d23d671f699b Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 12 Jan 2015 21:17:55 +0100 Subject: [PATCH] cmStandardIncludes: Remove list include. Include it only where used. --- Source/CPack/cmCPackGenerator.cxx | 1 + Source/CTest/cmCTestGlobalVC.h | 2 ++ Source/CTest/cmCTestMultiProcessHandler.cxx | 1 + Source/CTest/cmCTestSVN.h | 2 ++ Source/cmCommands.h | 2 ++ Source/cmConditionEvaluator.h | 2 ++ Source/cmFileLockPool.h | 2 ++ Source/cmMakefile.cxx | 1 + Source/cmQtAutoGenerators.h | 2 ++ Source/cmStandardIncludes.h | 1 - Source/cmake.cxx | 2 ++ 11 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Source/CPack/cmCPackGenerator.cxx b/Source/CPack/cmCPackGenerator.cxx index 1c670d20b..006239aac 100644 --- a/Source/CPack/cmCPackGenerator.cxx +++ b/Source/CPack/cmCPackGenerator.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #if defined(__HAIKU__) #include diff --git a/Source/CTest/cmCTestGlobalVC.h b/Source/CTest/cmCTestGlobalVC.h index cb0d16560..29e0a61ec 100644 --- a/Source/CTest/cmCTestGlobalVC.h +++ b/Source/CTest/cmCTestGlobalVC.h @@ -14,6 +14,8 @@ #include "cmCTestVC.h" +#include + /** \class cmCTestGlobalVC * \brief Base class for handling globally-versioned trees * diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index f9e8a3cf8..f22312754 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -16,6 +16,7 @@ #include "cmSystemTools.h" #include #include +#include #include #include diff --git a/Source/CTest/cmCTestSVN.h b/Source/CTest/cmCTestSVN.h index c6548e3fb..17bf7cb6f 100644 --- a/Source/CTest/cmCTestSVN.h +++ b/Source/CTest/cmCTestSVN.h @@ -14,6 +14,8 @@ #include "cmCTestGlobalVC.h" +#include + /** \class cmCTestSVN * \brief Interaction with subversion command-line tool * diff --git a/Source/cmCommands.h b/Source/cmCommands.h index c56673fed..e90285386 100644 --- a/Source/cmCommands.h +++ b/Source/cmCommands.h @@ -13,6 +13,8 @@ #define cmCommands_h #include "cmStandardIncludes.h" +#include + class cmCommand; /** * Global function to return all compiled in commands. diff --git a/Source/cmConditionEvaluator.h b/Source/cmConditionEvaluator.h index 01624f92c..fcef23404 100644 --- a/Source/cmConditionEvaluator.h +++ b/Source/cmConditionEvaluator.h @@ -15,6 +15,8 @@ #include "cmCommand.h" #include "cmExpandedCommandArgument.h" +#include + class cmConditionEvaluator { public: diff --git a/Source/cmFileLockPool.h b/Source/cmFileLockPool.h index baef3101f..f0614a37a 100644 --- a/Source/cmFileLockPool.h +++ b/Source/cmFileLockPool.h @@ -14,6 +14,8 @@ #include "cmStandardIncludes.h" +#include + class cmFileLockResult; class cmFileLock; diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index ba914e151..ff3e35da1 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -38,6 +38,7 @@ #include #include +#include #include // for isspace #include diff --git a/Source/cmQtAutoGenerators.h b/Source/cmQtAutoGenerators.h index 79fa5dfa8..f74e3c5b6 100644 --- a/Source/cmQtAutoGenerators.h +++ b/Source/cmQtAutoGenerators.h @@ -14,6 +14,8 @@ #ifndef cmQtAutoGenerators_h #define cmQtAutoGenerators_h +#include + class cmGlobalGenerator; class cmMakefile; diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 180bd8dd5..77b4f6298 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -53,7 +53,6 @@ #include #include #include -#include #include // include the "c" string header diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 652e45105..4b6af0afa 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -103,6 +103,8 @@ #include // struct stat +#include + static bool cmakeCheckStampFile(const char* stampName); static bool cmakeCheckStampList(const char* stampName);