Commit f30523d0 authored by wahikihiki's avatar wahikihiki Committed by Brad King
Browse files

clang-tidy: modernize-deprecated-headers

parent 9602bcfc
...@@ -11,7 +11,6 @@ misc-*,\ ...@@ -11,7 +11,6 @@ misc-*,\
-misc-static-assert,\ -misc-static-assert,\
modernize-*,\ modernize-*,\
-modernize-avoid-c-arrays,\ -modernize-avoid-c-arrays,\
-modernize-deprecated-headers,\
-modernize-use-nodiscard,\ -modernize-use-nodiscard,\
-modernize-use-noexcept,\ -modernize-use-noexcept,\
-modernize-use-transparent-functors,\ -modernize-use-transparent-functors,\
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
#include "cmXMLParser.h" #include "cmXMLParser.h"
#include "cmXMLWriter.h" #include "cmXMLWriter.h"
#include <cstddef>
#include <sstream> #include <sstream>
#include <stddef.h>
#include <utility> #include <utility>
cmCPackIFWInstaller::cmCPackIFWInstaller() = default; cmCPackIFWInstaller::cmCPackIFWInstaller() = default;
......
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
#include "cmTimestamp.h" #include "cmTimestamp.h"
#include "cmXMLWriter.h" #include "cmXMLWriter.h"
#include <cstddef>
#include <map> #include <map>
#include <sstream> #include <sstream>
#include <stddef.h>
#include <utility> #include <utility>
//---------------------------------------------------------- CompareStruct --- //---------------------------------------------------------- CompareStruct ---
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "cmXMLParser.h" #include "cmXMLParser.h"
#include "cmXMLWriter.h" #include "cmXMLWriter.h"
#include <stddef.h> #include <cstddef>
cmCPackIFWRepository::cmCPackIFWRepository() cmCPackIFWRepository::cmCPackIFWRepository()
: Update(cmCPackIFWRepository::None) : Update(cmCPackIFWRepository::None)
......
...@@ -3,8 +3,9 @@ ...@@ -3,8 +3,9 @@
#include "cmsys/FStream.hxx" #include "cmsys/FStream.hxx"
#include "cmsys/Process.h" #include "cmsys/Process.h"
#include "cmsys/SystemTools.hxx" #include "cmsys/SystemTools.hxx"
#include <cstddef>
#include <iostream> #include <iostream>
#include <stddef.h>
#include <string> #include <string>
#include <vector> #include <vector>
......
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
#include "cm_sys_stat.h" #include "cm_sys_stat.h"
#include "cmsys/Glob.hxx" #include "cmsys/Glob.hxx"
#include <cstring>
#include <map> #include <map>
#include <ostream> #include <ostream>
#include <set> #include <set>
#include <string.h>
#include <utility> #include <utility>
namespace { namespace {
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
#include "cmsys/FStream.hxx" #include "cmsys/FStream.hxx"
#include "cmsys/RegularExpression.hxx" #include "cmsys/RegularExpression.hxx"
#include <algorithm> #include <algorithm>
#include <cstdlib>
#include <iomanip> #include <iomanip>
#include <map> #include <map>
#include <stdlib.h>
#include <CoreFoundation/CoreFoundation.h> #include <CoreFoundation/CoreFoundation.h>
......
...@@ -14,10 +14,10 @@ ...@@ -14,10 +14,10 @@
#include "cmsys/Directory.hxx" #include "cmsys/Directory.hxx"
#include "cmsys/RegularExpression.hxx" #include "cmsys/RegularExpression.hxx"
#include <algorithm> #include <algorithm>
#include <cstdlib>
#include <cstring>
#include <map> #include <map>
#include <sstream> #include <sstream>
#include <stdlib.h>
#include <string.h>
#include <utility> #include <utility>
/* NSIS uses different command line syntax on Windows and others */ /* NSIS uses different command line syntax on Windows and others */
......
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
#include "cmsys/FStream.hxx" #include "cmsys/FStream.hxx"
#include "cmsys/RegularExpression.hxx" #include "cmsys/RegularExpression.hxx"
#include <assert.h> #include <cassert>
#include <cstdio>
#include <cstdlib>
#include <map> #include <map>
#include <sstream> #include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string> #include <string>
#include "cmCPackComponentGroup.h" #include "cmCPackComponentGroup.h"
......
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
file Copyright.txt or https://cmake.org/licensing for details. */ file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackProductBuildGenerator.h" #include "cmCPackProductBuildGenerator.h"
#include <cstddef>
#include <map> #include <map>
#include <sstream> #include <sstream>
#include <stddef.h>
#include "cmCPackComponentGroup.h" #include "cmCPackComponentGroup.h"
#include "cmCPackLog.h" #include "cmCPackLog.h"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#include "cmCPackRPMGenerator.h" #include "cmCPackRPMGenerator.h"
#include <algorithm> #include <algorithm>
#include <ctype.h> #include <cctype>
#include <map> #include <map>
#include <ostream> #include <ostream>
#include <utility> #include <utility>
......
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
#include "cmCPackSTGZGenerator.h" #include "cmCPackSTGZGenerator.h"
#include "cmsys/FStream.hxx" #include "cmsys/FStream.hxx"
#include <cstdio>
#include <sstream> #include <sstream>
#include <stdio.h>
#include <string> #include <string>
#include <vector> #include <vector>
......
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
# include "cmsys/ConsoleBuf.hxx" # include "cmsys/ConsoleBuf.hxx"
#endif #endif
#include <cstddef>
#include <iostream> #include <iostream>
#include <map> #include <map>
#include <sstream> #include <sstream>
#include <stddef.h>
#include <string> #include <string>
#include <utility> #include <utility>
#include <vector> #include <vector>
......
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
#include "cm_expat.h" #include "cm_expat.h"
#include "cmsys/RegularExpression.hxx" #include "cmsys/RegularExpression.hxx"
#include <cstdlib>
#include <list> #include <list>
#include <map> #include <map>
#include <ostream> #include <ostream>
#include <stdlib.h>
#include <vector> #include <vector>
extern "C" int cmBZRXMLParserUnknownEncodingHandler(void* /*unused*/, extern "C" int cmBZRXMLParserUnknownEncodingHandler(void* /*unused*/,
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
#include "cmsys/Process.h" #include "cmsys/Process.h"
#include <chrono> #include <chrono>
#include <cstdlib>
#include <cstring> #include <cstring>
#include <ratio> #include <ratio>
#include <stdlib.h>
cmCTestBuildAndTestHandler::cmCTestBuildAndTestHandler() cmCTestBuildAndTestHandler::cmCTestBuildAndTestHandler()
{ {
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmake.h" #include "cmake.h"
#include <cstring>
#include <sstream> #include <sstream>
#include <string.h>
class cmExecutionStatus; class cmExecutionStatus;
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
#include "cmsys/Directory.hxx" #include "cmsys/Directory.hxx"
#include "cmsys/FStream.hxx" #include "cmsys/FStream.hxx"
#include "cmsys/Process.h" #include "cmsys/Process.h"
#include <cstdlib>
#include <cstring>
#include <set> #include <set>
#include <stdlib.h>
#include <string.h>
#include <utility> #include <utility>
static const char* cmCTestErrorMatches[] = { static const char* cmCTestErrorMatches[] = {
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmake.h" #include "cmake.h"
#include <cstring>
#include <sstream> #include <sstream>
#include <string.h>
#include <vector> #include <vector>
cmCTestConfigureCommand::cmCTestConfigureCommand() cmCTestConfigureCommand::cmCTestConfigureCommand()
......
...@@ -24,12 +24,12 @@ ...@@ -24,12 +24,12 @@
#include "cmsys/RegularExpression.hxx" #include "cmsys/RegularExpression.hxx"
#include <algorithm> #include <algorithm>
#include <chrono> #include <chrono>
#include <cstdio>
#include <cstdlib>
#include <cstring> #include <cstring>
#include <iomanip> #include <iomanip>
#include <iterator> #include <iterator>
#include <sstream> #include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <utility> #include <utility>
class cmMakefile; class cmMakefile;
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include "cmStringAlgorithms.h" #include "cmStringAlgorithms.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include <cstdio>
#include <ostream> #include <ostream>
#include <stdio.h>
cmCTestCurl::cmCTestCurl(cmCTest* ctest) cmCTestCurl::cmCTestCurl(cmCTest* ctest)
{ {
......
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
#include "cmsys/FStream.hxx" #include "cmsys/FStream.hxx"
#include "cmsys/Process.h" #include "cmsys/Process.h"
#include <ctype.h> #include <cctype>
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include <time.h> #include <ctime>
#include <vector> #include <vector>
#include "cmCTest.h" #include "cmCTest.h"
......
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmWorkingDirectory.h" #include "cmWorkingDirectory.h"
#include <cstdlib>
#include <cstring> #include <cstring>
#include <sstream> #include <sstream>
#include <stdlib.h>
cmCTestHandlerCommand::cmCTestHandlerCommand() cmCTestHandlerCommand::cmCTestHandlerCommand()
{ {
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
#include "cmsys/FStream.hxx" #include "cmsys/FStream.hxx"
#include "cmsys/Process.h" #include "cmsys/Process.h"
#include "cmsys/RegularExpression.hxx" #include "cmsys/RegularExpression.hxx"
#include <cstdlib>
#include <cstring>
#include <iostream> #include <iostream>
#include <stdlib.h>
#include <string.h>
#include "cmCryptoHash.h" #include "cmCryptoHash.h"
#include "cmGeneratedFileStream.h" #include "cmGeneratedFileStream.h"
......
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
#include "cmsys/Glob.hxx" #include "cmsys/Glob.hxx"
#include "cmsys/RegularExpression.hxx" #include "cmsys/RegularExpression.hxx"
#include <chrono> #include <chrono>
#include <cstring>
#include <iostream> #include <iostream>
#include <sstream> #include <sstream>
#include <string.h>
#include <utility> #include <utility>
struct CatToErrorType struct CatToErrorType
......
...@@ -25,15 +25,15 @@ ...@@ -25,15 +25,15 @@
#include <algorithm> #include <algorithm>
#include <chrono> #include <chrono>
#include <cmath>
#include <cstdlib>
#include <cstring> #include <cstring>
#include <iomanip> #include <iomanip>
#include <iostream> #include <iostream>
#include <list> #include <list>
#include <math.h>
#include <memory> #include <memory>
#include <sstream> #include <sstream>
#include <stack> #include <stack>
#include <stdlib.h>
#include <unordered_map> #include <unordered_map>
#include <utility> #include <utility>
#include <vector> #include <vector>
......
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
#include "cmsys/RegularExpression.hxx" #include "cmsys/RegularExpression.hxx"
#include <algorithm> #include <algorithm>
#include <ctime>
#include <ostream> #include <ostream>
#include <time.h>
#include <utility> #include <utility>
cmCTestP4::cmCTestP4(cmCTest* ct, std::ostream& log) cmCTestP4::cmCTestP4(cmCTest* ct, std::ostream& log)
......
...@@ -13,11 +13,11 @@ ...@@ -13,11 +13,11 @@
#include "cmsys/RegularExpression.hxx" #include "cmsys/RegularExpression.hxx"
#include <chrono> #include <chrono>
#include <cstdint> #include <cstdint>
#include <cstdio>
#include <cstring> #include <cstring>
#include <iomanip> #include <iomanip>
#include <ratio> #include <ratio>
#include <sstream> #include <sstream>
#include <stdio.h>
#include <utility> #include <utility>
#include "cm_memory.hxx" #include "cm_memory.hxx"
......
...@@ -12,10 +12,10 @@ ...@@ -12,10 +12,10 @@
#include "cmXMLWriter.h" #include "cmXMLWriter.h"
#include "cmsys/RegularExpression.hxx" #include "cmsys/RegularExpression.hxx"
#include <cstdlib>
#include <cstring>
#include <map> #include <map>
#include <ostream> #include <ostream>
#include <stdlib.h>
#include <string.h>
struct cmCTestSVN::Revision : public cmCTestVC::Revision struct cmCTestSVN::Revision : public cmCTestVC::Revision
{ {
......
...@@ -34,13 +34,13 @@ ...@@ -34,13 +34,13 @@
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include "cmake.h" #include "cmake.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map> #include <map>
#include <memory> #include <memory>
#include <ratio> #include <ratio>
#include <sstream> #include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utility> #include <utility>
#ifdef _WIN32 #ifdef _WIN32
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
#include "cmCTestScriptHandler.h" #include "cmCTestScriptHandler.h"
#include <stdlib.h> #include <cstdlib>
class cmExecutionStatus; class cmExecutionStatus;
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
#include "cmMakefile.h" #include "cmMakefile.h"
#include "cmSystemTools.h" #include "cmSystemTools.h"
#include <cstddef>
#include <sstream> #include <sstream>
#include <stddef.h>
class cmExecutionStatus; class cmExecutionStatus;
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
#include "cm_jsoncpp_reader.h" #include "cm_jsoncpp_reader.h"
#include "cm_jsoncpp_value.h" #include "cm_jsoncpp_value.h"
#include <chrono> #include <chrono>
#include <cstdio>
#include <cstdlib>
#include <sstream> #include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include "cmAlgorithms.h" #include "cmAlgorithms.h"
#include "cmCTest.h" #include "cmCTest.h"
......
...@@ -10,8 +10,8 @@ ...@@ -10,8 +10,8 @@
#include "cmStringAlgorithms.h"