summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-02 19:05:39 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-03 14:08:41 (GMT)
commit7b6ffa59b12aaa11f435578cb67e59570bef0453 (patch)
treed8e29759dae5046e8271aa1934b4c433ae139c8d
parentbe14fe4857299ccd5918e6b1f8db0f0587db2850 (diff)
downloadCMake-7b6ffa59b12aaa11f435578cb67e59570bef0453.zip
CMake-7b6ffa59b12aaa11f435578cb67e59570bef0453.tar.gz
CMake-7b6ffa59b12aaa11f435578cb67e59570bef0453.tar.bz2
Source: Sort includes of sys/types.h as clang-format would
When this header is included in blocks where order does not matter, just place it in lexicographic order as clang-format would by default.
-rw-r--r--Source/CTest/cmCTestGIT.cxx2
-rw-r--r--Source/CTest/cmCTestP4.cxx2
-rw-r--r--Source/cmGeneratorExpressionEvaluationFile.h2
-rw-r--r--Source/cmSystemTools.cxx2
4 files changed, 4 insertions, 4 deletions
diff --git a/Source/CTest/cmCTestGIT.cxx b/Source/CTest/cmCTestGIT.cxx
index 3ff12c1..19d869c 100644
--- a/Source/CTest/cmCTestGIT.cxx
+++ b/Source/CTest/cmCTestGIT.cxx
@@ -19,8 +19,8 @@
#include <cmsys/Process.h>
#include <cmsys/RegularExpression.hxx>
-#include <sys/types.h>
#include <ctype.h>
+#include <sys/types.h>
#include <time.h>
//----------------------------------------------------------------------------
diff --git a/Source/CTest/cmCTestP4.cxx b/Source/CTest/cmCTestP4.cxx
index f7c960c..b801cfc 100644
--- a/Source/CTest/cmCTestP4.cxx
+++ b/Source/CTest/cmCTestP4.cxx
@@ -17,8 +17,8 @@
#include <cmsys/Process.h>
#include <cmsys/RegularExpression.hxx>
-#include <sys/types.h>
#include <ctype.h>
+#include <sys/types.h>
#include <time.h>
//----------------------------------------------------------------------------
diff --git a/Source/cmGeneratorExpressionEvaluationFile.h b/Source/cmGeneratorExpressionEvaluationFile.h
index f34dadc..b8c824b 100644
--- a/Source/cmGeneratorExpressionEvaluationFile.h
+++ b/Source/cmGeneratorExpressionEvaluationFile.h
@@ -14,8 +14,8 @@
#include "cmGeneratorExpression.h"
-#include <sys/types.h>
#include <cmsys/auto_ptr.hxx>
+#include <sys/types.h>
class cmLocalGenerator;
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx
index 3177a84..68c1eb8 100644
--- a/Source/cmSystemTools.cxx
+++ b/Source/cmSystemTools.cxx
@@ -42,8 +42,8 @@
// include wincrypt.h after windows.h
# include <wincrypt.h>
#else
-# include <sys/types.h>
# include <sys/time.h>
+# include <sys/types.h>
# include <sys/wait.h>
# include <unistd.h>
# include <utime.h>