summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-09-03 15:41:40 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-03 15:46:52 (GMT)
commitde0a2354fcd2f97b1a8f7ec98b4b623e76d88c2c (patch)
treef773e19c8d1ef669b457ad0a2fdfbb1611fd888e
parent1aa0a18c41eb6b8dbfc9130eb975fa9ecd6b680c (diff)
downloadCMake-de0a2354fcd2f97b1a8f7ec98b4b623e76d88c2c.zip
CMake-de0a2354fcd2f97b1a8f7ec98b4b623e76d88c2c.tar.gz
CMake-de0a2354fcd2f97b1a8f7ec98b4b623e76d88c2c.tar.bz2
IWYU: Add missing cstddef includes for size_t and nullptr_t
The IWYU tool we use for CI now diagnoses these.
-rw-r--r--Source/CPack/IFW/cmCPackIFWCommon.cxx1
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx1
-rw-r--r--Source/cmFileAPI.cxx1
-rw-r--r--Source/cmGeneratorTarget.cxx1
-rw-r--r--Source/cmListCommand.cxx1
-rw-r--r--Source/cmProjectCommand.cxx1
-rw-r--r--Source/cmQtAutoGenInitializer.cxx1
-rw-r--r--Source/cmString.hxx1
-rw-r--r--Source/cmStringAlgorithms.cxx1
-rw-r--r--Source/cmUVProcessChain.h1
-rw-r--r--Source/cmXMLWriter.h1
-rw-r--r--Tests/CMakeLib/testString.cxx1
12 files changed, 12 insertions, 0 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWCommon.cxx b/Source/CPack/IFW/cmCPackIFWCommon.cxx
index f9ce822..aa9a457 100644
--- a/Source/CPack/IFW/cmCPackIFWCommon.cxx
+++ b/Source/CPack/IFW/cmCPackIFWCommon.cxx
@@ -11,6 +11,7 @@
#include "cmVersionConfig.h"
#include "cmXMLWriter.h"
+#include <cstddef>
#include <sstream>
#include <utility>
#include <vector>
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 547d2f3..b90209e 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -28,6 +28,7 @@
#include <cmsys/Base64.h>
#include <cmsys/Directory.hxx>
#include <cmsys/RegularExpression.hxx>
+#include <cstddef>
#include <cstring>
#include <functional>
#include <iomanip>
diff --git a/Source/cmFileAPI.cxx b/Source/cmFileAPI.cxx
index 5d9181a..8161191 100644
--- a/Source/cmFileAPI.cxx
+++ b/Source/cmFileAPI.cxx
@@ -17,6 +17,7 @@
#include <algorithm>
#include <cassert>
#include <chrono>
+#include <cstddef>
#include <ctime>
#include <iomanip>
#include <sstream>
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index b9a9204..8896e15 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -5,6 +5,7 @@
#include "cmsys/RegularExpression.hxx"
#include <algorithm>
#include <assert.h>
+#include <cstddef>
#include <errno.h>
#include <iterator>
#include <memory>
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx
index 91dea58..d2c051e 100644
--- a/Source/cmListCommand.cxx
+++ b/Source/cmListCommand.cxx
@@ -5,6 +5,7 @@
#include "cmsys/RegularExpression.hxx"
#include <algorithm>
#include <assert.h>
+#include <cstddef>
#include <functional>
#include <iterator>
#include <set>
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx
index f8c5ada..e74fff6 100644
--- a/Source/cmProjectCommand.cxx
+++ b/Source/cmProjectCommand.cxx
@@ -4,6 +4,7 @@
#include "cmsys/RegularExpression.hxx"
#include <array>
+#include <cstddef>
#include <cstdio>
#include <functional>
#include <limits>
diff --git a/Source/cmQtAutoGenInitializer.cxx b/Source/cmQtAutoGenInitializer.cxx
index 155167b..d6916b0 100644
--- a/Source/cmQtAutoGenInitializer.cxx
+++ b/Source/cmQtAutoGenInitializer.cxx
@@ -29,6 +29,7 @@
#include "cmsys/SystemInformation.hxx"
#include <algorithm>
+#include <cstddef>
#include <deque>
#include <initializer_list>
#include <map>
diff --git a/Source/cmString.hxx b/Source/cmString.hxx
index 49bad78..226ac67 100644
--- a/Source/cmString.hxx
+++ b/Source/cmString.hxx
@@ -9,6 +9,7 @@
#include "cm_string_view.hxx"
#include <algorithm>
+#include <cstddef>
#include <functional>
#include <initializer_list>
#include <memory>
diff --git a/Source/cmStringAlgorithms.cxx b/Source/cmStringAlgorithms.cxx
index c686aa0..131a01e 100644
--- a/Source/cmStringAlgorithms.cxx
+++ b/Source/cmStringAlgorithms.cxx
@@ -3,6 +3,7 @@
#include "cmStringAlgorithms.h"
#include <algorithm>
+#include <cstddef>
#include <cstdio>
#include <errno.h>
#include <stdlib.h>
diff --git a/Source/cmUVProcessChain.h b/Source/cmUVProcessChain.h
index 75f8f66..76a9c40 100644
--- a/Source/cmUVProcessChain.h
+++ b/Source/cmUVProcessChain.h
@@ -6,6 +6,7 @@
#include "cm_uv.h"
#include <array>
+#include <cstddef>
#include <iosfwd>
#include <memory>
#include <string>
diff --git a/Source/cmXMLWriter.h b/Source/cmXMLWriter.h
index 512e103..a5b06af 100644
--- a/Source/cmXMLWriter.h
+++ b/Source/cmXMLWriter.h
@@ -8,6 +8,7 @@
#include "cmXMLSafe.h"
#include <chrono>
+#include <cstddef>
#include <ctime>
#include <ostream>
#include <stack>
diff --git a/Tests/CMakeLib/testString.cxx b/Tests/CMakeLib/testString.cxx
index af5e41e..075892f 100644
--- a/Tests/CMakeLib/testString.cxx
+++ b/Tests/CMakeLib/testString.cxx
@@ -6,6 +6,7 @@
#include "cm_static_string_view.hxx"
#include "cm_string_view.hxx"
+#include <cstddef>
#include <cstring>
#include <iostream>
#include <iterator>