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

clang-tidy: modernize-deprecated-headers

parent 9602bcfc
......@@ -11,7 +11,6 @@ misc-*,\
-misc-static-assert,\
modernize-*,\
-modernize-avoid-c-arrays,\
-modernize-deprecated-headers,\
-modernize-use-nodiscard,\
-modernize-use-noexcept,\
-modernize-use-transparent-functors,\
......
......@@ -13,8 +13,8 @@
#include "cmXMLParser.h"
#include "cmXMLWriter.h"
#include <cstddef>
#include <sstream>
#include <stddef.h>
#include <utility>
cmCPackIFWInstaller::cmCPackIFWInstaller() = default;
......
......@@ -13,9 +13,9 @@
#include "cmTimestamp.h"
#include "cmXMLWriter.h"
#include <cstddef>
#include <map>
#include <sstream>
#include <stddef.h>
#include <utility>
//---------------------------------------------------------- CompareStruct ---
......
......@@ -8,7 +8,7 @@
#include "cmXMLParser.h"
#include "cmXMLWriter.h"
#include <stddef.h>
#include <cstddef>
cmCPackIFWRepository::cmCPackIFWRepository()
: Update(cmCPackIFWRepository::None)
......
......@@ -3,8 +3,9 @@
#include "cmsys/FStream.hxx"
#include "cmsys/Process.h"
#include "cmsys/SystemTools.hxx"
#include <cstddef>
#include <iostream>
#include <stddef.h>
#include <string>
#include <vector>
......
......@@ -13,10 +13,10 @@
#include "cm_sys_stat.h"
#include "cmsys/Glob.hxx"
#include <cstring>
#include <map>
#include <ostream>
#include <set>
#include <string.h>
#include <utility>
namespace {
......
......@@ -12,9 +12,9 @@
#include "cmsys/FStream.hxx"
#include "cmsys/RegularExpression.hxx"
#include <algorithm>
#include <cstdlib>
#include <iomanip>
#include <map>
#include <stdlib.h>
#include <CoreFoundation/CoreFoundation.h>
......
......@@ -14,10 +14,10 @@
#include "cmsys/Directory.hxx"
#include "cmsys/RegularExpression.hxx"
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <map>
#include <sstream>
#include <stdlib.h>
#include <string.h>
#include <utility>
/* NSIS uses different command line syntax on Windows and others */
......
......@@ -4,11 +4,11 @@
#include "cmsys/FStream.hxx"
#include "cmsys/RegularExpression.hxx"
#include <assert.h>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <map>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include "cmCPackComponentGroup.h"
......
......@@ -2,9 +2,9 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCPackProductBuildGenerator.h"
#include <cstddef>
#include <map>
#include <sstream>
#include <stddef.h>
#include "cmCPackComponentGroup.h"
#include "cmCPackLog.h"
......
......@@ -3,7 +3,7 @@
#include "cmCPackRPMGenerator.h"
#include <algorithm>
#include <ctype.h>
#include <cctype>
#include <map>
#include <ostream>
#include <utility>
......
......@@ -3,8 +3,8 @@
#include "cmCPackSTGZGenerator.h"
#include "cmsys/FStream.hxx"
#include <cstdio>
#include <sstream>
#include <stdio.h>
#include <string>
#include <vector>
......
......@@ -22,10 +22,10 @@
# include "cmsys/ConsoleBuf.hxx"
#endif
#include <cstddef>
#include <iostream>
#include <map>
#include <sstream>
#include <stddef.h>
#include <string>
#include <utility>
#include <vector>
......
......@@ -11,10 +11,10 @@
#include "cm_expat.h"
#include "cmsys/RegularExpression.hxx"
#include <cstdlib>
#include <list>
#include <map>
#include <ostream>
#include <stdlib.h>
#include <vector>
extern "C" int cmBZRXMLParserUnknownEncodingHandler(void* /*unused*/,
......
......@@ -14,9 +14,9 @@
#include "cmsys/Process.h"
#include <chrono>
#include <cstdlib>
#include <cstring>
#include <ratio>
#include <stdlib.h>
cmCTestBuildAndTestHandler::cmCTestBuildAndTestHandler()
{
......
......@@ -11,8 +11,8 @@
#include "cmSystemTools.h"
#include "cmake.h"
#include <cstring>
#include <sstream>
#include <string.h>
class cmExecutionStatus;
......
......@@ -17,9 +17,9 @@
#include "cmsys/Directory.hxx"
#include "cmsys/FStream.hxx"
#include "cmsys/Process.h"
#include <cstdlib>
#include <cstring>
#include <set>
#include <stdlib.h>
#include <string.h>
#include <utility>
static const char* cmCTestErrorMatches[] = {
......
......@@ -10,8 +10,8 @@
#include "cmSystemTools.h"
#include "cmake.h"
#include <cstring>
#include <sstream>
#include <string.h>
#include <vector>
cmCTestConfigureCommand::cmCTestConfigureCommand()
......
......@@ -24,12 +24,12 @@
#include "cmsys/RegularExpression.hxx"
#include <algorithm>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iterator>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <utility>
class cmMakefile;
......
......@@ -8,8 +8,8 @@
#include "cmStringAlgorithms.h"
#include "cmSystemTools.h"
#include <cstdio>
#include <ostream>
#include <stdio.h>
cmCTestCurl::cmCTestCurl(cmCTest* ctest)
{
......
......@@ -4,10 +4,10 @@
#include "cmsys/FStream.hxx"
#include "cmsys/Process.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <cctype>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <vector>
#include "cmCTest.h"
......
......@@ -10,9 +10,9 @@
#include "cmSystemTools.h"
#include "cmWorkingDirectory.h"
#include <cstdlib>
#include <cstring>
#include <sstream>
#include <stdlib.h>
cmCTestHandlerCommand::cmCTestHandlerCommand()
{
......
......@@ -5,9 +5,9 @@
#include "cmsys/FStream.hxx"
#include "cmsys/Process.h"
#include "cmsys/RegularExpression.hxx"
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <stdlib.h>
#include <string.h>
#include "cmCryptoHash.h"
#include "cmGeneratedFileStream.h"
......
......@@ -12,9 +12,9 @@
#include "cmsys/Glob.hxx"
#include "cmsys/RegularExpression.hxx"
#include <chrono>
#include <cstring>
#include <iostream>
#include <sstream>
#include <string.h>
#include <utility>
struct CatToErrorType
......
......@@ -25,15 +25,15 @@
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <iomanip>
#include <iostream>
#include <list>
#include <math.h>
#include <memory>
#include <sstream>
#include <stack>
#include <stdlib.h>
#include <unordered_map>
#include <utility>
#include <vector>
......
......@@ -12,8 +12,8 @@
#include "cmsys/RegularExpression.hxx"
#include <algorithm>
#include <ctime>
#include <ostream>
#include <time.h>
#include <utility>
cmCTestP4::cmCTestP4(cmCTest* ct, std::ostream& log)
......
......@@ -13,11 +13,11 @@
#include "cmsys/RegularExpression.hxx"
#include <chrono>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <iomanip>
#include <ratio>
#include <sstream>
#include <stdio.h>
#include <utility>
#include "cm_memory.hxx"
......
......@@ -12,10 +12,10 @@
#include "cmXMLWriter.h"
#include "cmsys/RegularExpression.hxx"
#include <cstdlib>
#include <cstring>
#include <map>
#include <ostream>
#include <stdlib.h>
#include <string.h>
struct cmCTestSVN::Revision : public cmCTestVC::Revision
{
......
......@@ -34,13 +34,13 @@
#include "cmSystemTools.h"
#include "cmake.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <map>
#include <memory>
#include <ratio>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utility>
#ifdef _WIN32
......
......@@ -4,7 +4,7 @@
#include "cmCTestScriptHandler.h"
#include <stdlib.h>
#include <cstdlib>
class cmExecutionStatus;
......
......@@ -8,8 +8,8 @@
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include <cstddef>
#include <sstream>
#include <stddef.h>
class cmExecutionStatus;
......
......@@ -6,9 +6,9 @@
#include "cm_jsoncpp_reader.h"
#include "cm_jsoncpp_value.h"
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include "cmAlgorithms.h"
#include "cmCTest.h"
......
......@@ -10,8 +10,8 @@
#include "cmStringAlgorithms.h"
#include <chrono>
#include <cstdlib>
#include <sstream>
#include <stdlib.h>
#include <vector>
cmCTestTestCommand::cmCTestTestCommand()
......
......@@ -29,15 +29,15 @@
#include <cmsys/Directory.hxx>
#include <cmsys/RegularExpression.hxx>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <functional>
#include <iomanip>
#include <iterator>
#include <set>
#include <sstream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <utility>
namespace {
......
......@@ -8,9 +8,9 @@
#include "cmXMLWriter.h"
#include "cmsys/Process.h"
#include <cstdio>
#include <ctime>
#include <sstream>
#include <stdio.h>
#include <time.h>
#include <vector>
cmCTestVC::cmCTestVC(cmCTest* ct, std::ostream& log)
......
......@@ -7,8 +7,8 @@
#include "cmSystemTools.h"
#include "cmsys/FStream.hxx"
#include <stdio.h>
#include <stdlib.h>
#include <cstdio>
#include <cstdlib>
class cmParseBlanketJSCoverage::JSONParser
{
......
......@@ -7,9 +7,9 @@
#include "cmsys/Directory.hxx"
#include "cmsys/FStream.hxx"
#include <cstdio>
#include <cstdlib>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <utility>
cmParseCacheCoverage::cmParseCacheCoverage(
......
......@@ -7,8 +7,8 @@
#include "cmXMLParser.h"
#include "cmsys/FStream.hxx"
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
#include <cstring>
class cmParseCoberturaCoverage::XMLParser : public cmXMLParser
{
......
......@@ -6,8 +6,8 @@
#include "cmsys/FStream.hxx"
#include "cmsys/Glob.hxx"
#include <stdio.h>
#include <stdlib.h>
#include <cstdio>
#include <cstdlib>
class cmParseDelphiCoverage::HTMLParser
{
......
......@@ -7,9 +7,9 @@
#include "cmsys/Directory.hxx"
#include "cmsys/FStream.hxx"
#include <cstdio>
#include <cstdlib>
#include <map>
#include <stdio.h>
#include <stdlib.h>
#include <vector>
cmParseGTMCoverage::cmParseGTMCoverage(cmCTestCoverageHandlerContainer& cont,
......
......@@ -9,8 +9,8 @@
#include "cmsys/Directory.hxx"
#include "cmsys/FStream.hxx"
#include "cmsys/Glob.hxx"
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
#include <cstring>
class cmParseJacocoCoverage::XMLParser : public cmXMLParser
{
......
......@@ -7,8 +7,8 @@
#include "cmsys/Directory.hxx"
#include "cmsys/FStream.hxx"
#include <stdlib.h>
#include <string.h>
#include <cstdlib>
#include <cstring>
/*
To setup coverage for php.
......
......@@ -10,8 +10,8 @@
#include "cmStringAlgorithms.h"
#include "cmsys/Process.h"
#include <csignal>
#include <iostream>
#include <signal.h>
#include <string>
#if defined(_WIN32)
# include "cm_kwiml.h"
......
......@@ -11,9 +11,9 @@
#include "cmake.h"
#include "cmsys/Encoding.hxx"
#include <csignal>
#include <cstring>
#include <iostream>
#include <signal.h>
#include <string.h>
#include <string>
#include <vector>
......
......@@ -15,7 +15,7 @@
#include "cmSystemTools.h"
#include "cmake.h"
#include <assert.h>
#include <cassert>
#include <vector>
cmCursesCacheEntryComposite::cmCursesCacheEntryComposite(
......
......@@ -7,8 +7,8 @@
#include "cmCursesStandardIncludes.h"
#include "cmVersion.h"
#include <stdio.h>
#include <string.h>
#include <cstdio>
#include <cstring>
inline int ctrl(int z)
{
......
......@@ -19,8 +19,8 @@
#include "cmake.h"
#include <algorithm>
#include <stdio.h>
#include <string.h>
#include <cstdio>
#include <cstring>
#include <utility>
inline int ctrl(int z)
......
......@@ -9,7 +9,7 @@
#include "cmCursesStandardIncludes.h"
#include "cmStateTypes.h"
#include <stddef.h>
#include <cstddef>
#include <string>
#include <vector>
......
......@@ -8,8 +8,8 @@
#include "cmCursesWidget.h"
#include "cmStateTypes.h"
#include <stdio.h>
#include <string.h>
#include <cstdio>
#include <cstring>
inline int ctrl(int z)
{
......
......@@ -229,8 +229,8 @@ int main(int argc, char** argv)
#if defined(Q_OS_MAC)
# include "cm_sys_stat.h"
# include <errno.h>
# include <string.h>
# include <cerrno>
# include <cstring>
# include <unistd.h>
static bool cmOSXInstall(std::string const& dir, std::string const& tool)
{
......
......@@ -2,8 +2,8 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmAddSubDirectoryCommand.h"
#include <cstring>
#include <sstream>
#include <string.h>
#include "cmExecutionStatus.h"
#include "cmMakefile.h"
......
......@@ -13,7 +13,7 @@
# include <pthread.h>
# include <sched.h>
// On some platforms CPU_ZERO needs memset but sched.h forgets string.h
# include <string.h> // IWYU pragma: keep
# include <cstring> // IWYU pragma: keep
# if defined(__FreeBSD__)
# include <pthread_np.h>
# include <sys/cpuset.h>
......
......@@ -11,10 +11,10 @@
#include "cmsys/Encoding.hxx"
#include "cmsys/FStream.hxx"
#include <cstring>
#include <ctime>
#include <iostream>
#include <sstream>
#include <string.h>
#include <time.h>
#ifndef __LA_SSIZE_T
# define __LA_SSIZE_T la_ssize_t
......
......@@ -5,8 +5,8 @@
#include "cmConfigure.h" // IWYU pragma: keep
#include <cstddef>
#include <iosfwd>
#include <stddef.h>
#include <string>
#if defined(CMAKE_BOOTSTRAP)
......
......@@ -4,7 +4,7 @@
#include "cmsys/Directory.hxx"
#include <algorithm>
#include <stddef.h>
#include <cstddef>
#include <utility>
#include "cmExecutionStatus.h"
......
......@@ -5,7 +5,7 @@
#include "cmConfigure.h" // IWYU pragma: keep