Browse Source

Modernize: Use #pragma once in all header files

#pragma once is a widely supported compiler pragma, even though it is
not part of the C++ standard. Many of the issues keeping #pragma once
from being standardized (distributed filesystems, build farms, hard
links, etc.) do not apply to CMake - it is easy to build CMake on a
single machine. CMake also does not install any header files which can
be consumed by other projects (though cmCPluginAPI.h has been
deliberately omitted from this conversion in case anyone is still using
it.) Finally, #pragma once has been required to build CMake since at
least August 2017 (7f29bbe6 enabled server mode unconditionally, which
had been using #pragma once since September 2016 (b13d3e0d)). The fact
that we now require C++11 filters out old compilers, and it is unlikely
that there is a compiler which supports C++11 but does not support
#pragma once.
Kitware Robot 5 years ago
parent
commit
bdca8b01d2
100 changed files with 100 additions and 398 deletions
  1. 1 4
      Source/CPack/IFW/cmCPackIFWCommon.h
  2. 1 4
      Source/CPack/IFW/cmCPackIFWGenerator.h
  3. 1 4
      Source/CPack/IFW/cmCPackIFWInstaller.h
  4. 1 4
      Source/CPack/IFW/cmCPackIFWPackage.h
  5. 1 4
      Source/CPack/IFW/cmCPackIFWRepository.h
  6. 1 4
      Source/CPack/WiX/cmCMakeToWixPath.h
  7. 1 4
      Source/CPack/WiX/cmCPackWIXGenerator.h
  8. 1 4
      Source/CPack/WiX/cmWIXAccessControlList.h
  9. 1 4
      Source/CPack/WiX/cmWIXDirectoriesSourceWriter.h
  10. 1 4
      Source/CPack/WiX/cmWIXFeaturesSourceWriter.h
  11. 1 4
      Source/CPack/WiX/cmWIXFilesSourceWriter.h
  12. 1 4
      Source/CPack/WiX/cmWIXPatch.h
  13. 1 4
      Source/CPack/WiX/cmWIXPatchParser.h
  14. 1 4
      Source/CPack/WiX/cmWIXRichTextFormatWriter.h
  15. 1 4
      Source/CPack/WiX/cmWIXShortcut.h
  16. 1 4
      Source/CPack/WiX/cmWIXSourceWriter.h
  17. 1 4
      Source/CPack/cmCPackArchiveGenerator.h
  18. 1 4
      Source/CPack/cmCPackBundleGenerator.h
  19. 1 4
      Source/CPack/cmCPackComponentGroup.h
  20. 1 4
      Source/CPack/cmCPackCygwinBinaryGenerator.h
  21. 1 4
      Source/CPack/cmCPackCygwinSourceGenerator.h
  22. 1 4
      Source/CPack/cmCPackDebGenerator.h
  23. 1 4
      Source/CPack/cmCPackDragNDropGenerator.h
  24. 1 4
      Source/CPack/cmCPackExternalGenerator.h
  25. 1 4
      Source/CPack/cmCPackFreeBSDGenerator.h
  26. 1 4
      Source/CPack/cmCPackGenerator.h
  27. 1 4
      Source/CPack/cmCPackGeneratorFactory.h
  28. 1 4
      Source/CPack/cmCPackLog.h
  29. 1 4
      Source/CPack/cmCPackNSISGenerator.h
  30. 1 4
      Source/CPack/cmCPackNuGetGenerator.h
  31. 1 4
      Source/CPack/cmCPackOSXX11Generator.h
  32. 1 4
      Source/CPack/cmCPackPKGGenerator.h
  33. 1 4
      Source/CPack/cmCPackPackageMakerGenerator.h
  34. 1 4
      Source/CPack/cmCPackProductBuildGenerator.h
  35. 1 4
      Source/CPack/cmCPackRPMGenerator.h
  36. 1 4
      Source/CPack/cmCPackSTGZGenerator.h
  37. 1 4
      Source/CTest/cmCTestBZR.h
  38. 1 4
      Source/CTest/cmCTestBinPacker.h
  39. 1 4
      Source/CTest/cmCTestBuildAndTestHandler.h
  40. 1 4
      Source/CTest/cmCTestBuildCommand.h
  41. 1 4
      Source/CTest/cmCTestBuildHandler.h
  42. 1 4
      Source/CTest/cmCTestCVS.h
  43. 1 4
      Source/CTest/cmCTestCommand.h
  44. 1 4
      Source/CTest/cmCTestConfigureCommand.h
  45. 1 4
      Source/CTest/cmCTestConfigureHandler.h
  46. 1 4
      Source/CTest/cmCTestCoverageCommand.h
  47. 1 4
      Source/CTest/cmCTestCoverageHandler.h
  48. 1 4
      Source/CTest/cmCTestCurl.h
  49. 1 4
      Source/CTest/cmCTestEmptyBinaryDirectoryCommand.h
  50. 1 4
      Source/CTest/cmCTestGIT.h
  51. 1 4
      Source/CTest/cmCTestGenericHandler.h
  52. 1 4
      Source/CTest/cmCTestGlobalVC.h
  53. 1 4
      Source/CTest/cmCTestHG.h
  54. 1 4
      Source/CTest/cmCTestHandlerCommand.h
  55. 1 4
      Source/CTest/cmCTestLaunch.h
  56. 1 4
      Source/CTest/cmCTestMemCheckCommand.h
  57. 1 4
      Source/CTest/cmCTestMemCheckHandler.h
  58. 1 4
      Source/CTest/cmCTestMultiProcessHandler.h
  59. 1 4
      Source/CTest/cmCTestP4.h
  60. 1 4
      Source/CTest/cmCTestReadCustomFilesCommand.h
  61. 1 4
      Source/CTest/cmCTestResourceAllocator.h
  62. 1 4
      Source/CTest/cmCTestResourceGroupsLexerHelper.h
  63. 1 4
      Source/CTest/cmCTestResourceSpec.h
  64. 1 4
      Source/CTest/cmCTestRunScriptCommand.h
  65. 1 4
      Source/CTest/cmCTestRunTest.h
  66. 1 4
      Source/CTest/cmCTestSVN.h
  67. 1 4
      Source/CTest/cmCTestScriptHandler.h
  68. 1 4
      Source/CTest/cmCTestSleepCommand.h
  69. 1 4
      Source/CTest/cmCTestStartCommand.h
  70. 1 4
      Source/CTest/cmCTestSubmitCommand.h
  71. 1 4
      Source/CTest/cmCTestSubmitHandler.h
  72. 1 4
      Source/CTest/cmCTestTestCommand.h
  73. 1 4
      Source/CTest/cmCTestTestHandler.h
  74. 1 4
      Source/CTest/cmCTestUpdateCommand.h
  75. 1 4
      Source/CTest/cmCTestUpdateHandler.h
  76. 1 4
      Source/CTest/cmCTestUploadCommand.h
  77. 1 4
      Source/CTest/cmCTestUploadHandler.h
  78. 1 4
      Source/CTest/cmCTestVC.h
  79. 1 3
      Source/CTest/cmParseBlanketJSCoverage.h
  80. 1 4
      Source/CTest/cmParseCacheCoverage.h
  81. 1 4
      Source/CTest/cmParseCoberturaCoverage.h
  82. 1 3
      Source/CTest/cmParseDelphiCoverage.h
  83. 1 4
      Source/CTest/cmParseGTMCoverage.h
  84. 1 4
      Source/CTest/cmParseJacocoCoverage.h
  85. 1 4
      Source/CTest/cmParseMumpsCoverage.h
  86. 1 4
      Source/CTest/cmParsePHPCoverage.h
  87. 1 4
      Source/CTest/cmProcess.h
  88. 1 4
      Source/CursesDialog/cmCursesBoolWidget.h
  89. 1 4
      Source/CursesDialog/cmCursesCacheEntryComposite.h
  90. 1 4
      Source/CursesDialog/cmCursesColor.h
  91. 1 4
      Source/CursesDialog/cmCursesDummyWidget.h
  92. 1 4
      Source/CursesDialog/cmCursesFilePathWidget.h
  93. 1 4
      Source/CursesDialog/cmCursesForm.h
  94. 1 4
      Source/CursesDialog/cmCursesLabelWidget.h
  95. 1 4
      Source/CursesDialog/cmCursesLongMessageForm.h
  96. 1 4
      Source/CursesDialog/cmCursesMainForm.h
  97. 1 4
      Source/CursesDialog/cmCursesOptionsWidget.h
  98. 1 4
      Source/CursesDialog/cmCursesPathWidget.h
  99. 1 4
      Source/CursesDialog/cmCursesStandardIncludes.h
  100. 1 4
      Source/CursesDialog/cmCursesStringWidget.h

+ 1 - 4
Source/CPack/IFW/cmCPackIFWCommon.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackIFWCommon_h
-#define cmCPackIFWCommon_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -77,5 +76,3 @@ protected:
                              cmCPackLog_msg.str().c_str());                   \
                              cmCPackLog_msg.str().c_str());                   \
     }                                                                         \
     }                                                                         \
   } while (false)
   } while (false)
-
-#endif // cmCPackIFWCommon_h

+ 1 - 4
Source/CPack/IFW/cmCPackIFWGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackIFWGenerator_h
-#define cmCPackIFWGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -152,5 +151,3 @@ private:
   std::vector<std::string> PkgsDirsVector;
   std::vector<std::string> PkgsDirsVector;
   std::vector<std::string> RepoDirsVector;
   std::vector<std::string> RepoDirsVector;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/IFW/cmCPackIFWInstaller.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackIFWInstaller_h
-#define cmCPackIFWInstaller_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -132,5 +131,3 @@ protected:
   void printSkippedOptionWarning(const std::string& optionName,
   void printSkippedOptionWarning(const std::string& optionName,
                                  const std::string& optionValue);
                                  const std::string& optionValue);
 };
 };
-
-#endif // cmCPackIFWInstaller_h

+ 1 - 4
Source/CPack/IFW/cmCPackIFWPackage.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackIFWPackage_h
-#define cmCPackIFWPackage_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -149,5 +148,3 @@ public:
   // Patch to package directory
   // Patch to package directory
   std::string Directory;
   std::string Directory;
 };
 };
-
-#endif // cmCPackIFWPackage_h

+ 1 - 4
Source/CPack/IFW/cmCPackIFWRepository.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackIFWRepository_h
-#define cmCPackIFWRepository_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -84,5 +83,3 @@ public:
   RepositoriesVector RepositoryUpdate;
   RepositoriesVector RepositoryUpdate;
   std::string Directory;
   std::string Directory;
 };
 };
-
-#endif // cmCPackIFWRepository_h

+ 1 - 4
Source/CPack/WiX/cmCMakeToWixPath.h

@@ -1,12 +1,9 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCMakeToWixPath_h
-#define cmCMakeToWixPath_h
+#pragma once
 
 
 #include "cmConfigure.h" //IWYU pragma: keep
 #include "cmConfigure.h" //IWYU pragma: keep
 
 
 #include <string>
 #include <string>
 
 
 std::string CMakeToWixPath(const std::string& cygpath);
 std::string CMakeToWixPath(const std::string& cygpath);
-
-#endif // cmCMakeToWixPath_h

+ 1 - 4
Source/CPack/WiX/cmCPackWIXGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackWIXGenerator_h
-#define cmCPackWIXGenerator_h
+#pragma once
 
 
 #include <map>
 #include <map>
 #include <memory>
 #include <memory>
@@ -171,5 +170,3 @@ private:
 
 
   cmWIXSourceWriter::GuidType ComponentGuidType;
   cmWIXSourceWriter::GuidType ComponentGuidType;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/WiX/cmWIXAccessControlList.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXAccessControlList_h
-#define cmWIXAccessControlList_h
+#pragma once
 
 
 #include "cmCPackLog.h"
 #include "cmCPackLog.h"
 #include "cmInstalledFile.h"
 #include "cmInstalledFile.h"
@@ -29,5 +28,3 @@ private:
   cmInstalledFile const& InstalledFile;
   cmInstalledFile const& InstalledFile;
   cmWIXSourceWriter& SourceWriter;
   cmWIXSourceWriter& SourceWriter;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/WiX/cmWIXDirectoriesSourceWriter.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXDirectoriesSourceWriter_h
-#define cmWIXDirectoriesSourceWriter_h
+#pragma once
 
 
 #include <string>
 #include <string>
 
 
@@ -29,5 +28,3 @@ public:
 
 
   void EndInstallationPrefixDirectory(size_t size);
   void EndInstallationPrefixDirectory(size_t size);
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/WiX/cmWIXFeaturesSourceWriter.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXFeaturesSourceWriter_h
-#define cmWIXFeaturesSourceWriter_h
+#pragma once
 
 
 #include "cmCPackGenerator.h"
 #include "cmCPackGenerator.h"
 #include "cmWIXPatch.h"
 #include "cmWIXPatch.h"
@@ -27,5 +26,3 @@ public:
 
 
   void EmitComponentRef(std::string const& id);
   void EmitComponentRef(std::string const& id);
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/WiX/cmWIXFilesSourceWriter.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXFilesSourceWriter_h
-#define cmWIXFilesSourceWriter_h
+#pragma once
 
 
 #include "cmCPackGenerator.h"
 #include "cmCPackGenerator.h"
 #include "cmWIXPatch.h"
 #include "cmWIXPatch.h"
@@ -37,5 +36,3 @@ public:
                                 std::string const& filePath, cmWIXPatch& patch,
                                 std::string const& filePath, cmWIXPatch& patch,
                                 cmInstalledFile const* installedFile);
                                 cmInstalledFile const* installedFile);
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/WiX/cmWIXPatch.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXPatch_h
-#define cmWIXPatch_h
+#pragma once
 
 
 #include <string>
 #include <string>
 
 
@@ -33,5 +32,3 @@ private:
 
 
   cmWIXPatchParser::fragment_map_t Fragments;
   cmWIXPatchParser::fragment_map_t Fragments;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/WiX/cmWIXPatchParser.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackWIXPatchParser_h
-#define cmCPackWIXPatchParser_h
+#pragma once
 
 
 #include <map>
 #include <map>
 #include <memory>
 #include <memory>
@@ -91,5 +90,3 @@ private:
 
 
   std::vector<cmWIXPatchElement*> ElementStack;
   std::vector<cmWIXPatchElement*> ElementStack;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/WiX/cmWIXRichTextFormatWriter.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXRichTextFormatWriter_h
-#define cmWIXRichTextFormatWriter_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -42,5 +41,3 @@ private:
 
 
   cmsys::ofstream File;
   cmsys::ofstream File;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/WiX/cmWIXShortcut.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXShortcut_h
-#define cmWIXShortcut_h
+#pragma once
 
 
 #include <map>
 #include <map>
 #include <set>
 #include <set>
@@ -56,5 +55,3 @@ private:
   shortcut_type_map_t Shortcuts;
   shortcut_type_map_t Shortcuts;
   shortcut_id_map_t EmptyIdMap;
   shortcut_id_map_t EmptyIdMap;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/WiX/cmWIXSourceWriter.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXSourceWriter_h
-#define cmWIXSourceWriter_h
+#pragma once
 
 
 #include <string>
 #include <string>
 #include <vector>
 #include <vector>
@@ -76,5 +75,3 @@ private:
 
 
   GuidType ComponentGuidType;
   GuidType ComponentGuidType;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackArchiveGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackArchiveGenerator_h
-#define cmCPackArchiveGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -93,5 +92,3 @@ private:
   std::string ArchiveFormat;
   std::string ArchiveFormat;
   std::string OutputExtension;
   std::string OutputExtension;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackBundleGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackBundleGenerator_h
-#define cmCPackBundleGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -33,5 +32,3 @@ protected:
 
 
   std::string InstallPrefix;
   std::string InstallPrefix;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackComponentGroup.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackComponentGroup_h
-#define cmCPackComponentGroup_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -167,5 +166,3 @@ public:
   /// The list of components.
   /// The list of components.
   std::vector<cmCPackComponent*> Components;
   std::vector<cmCPackComponent*> Components;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackCygwinBinaryGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackCygwinBinaryGenerator_h
-#define cmCPackCygwinBinaryGenerator_h
+#pragma once
 
 
 #include "cmCPackArchiveGenerator.h"
 #include "cmCPackArchiveGenerator.h"
 
 
@@ -25,5 +24,3 @@ protected:
   virtual const char* GetOutputExtension();
   virtual const char* GetOutputExtension();
   std::string OutputExtension;
   std::string OutputExtension;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackCygwinSourceGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackCygwinSourceGenerator_h
-#define cmCPackCygwinSourceGenerator_h
+#pragma once
 
 
 #include "cmCPackArchiveGenerator.h"
 #include "cmCPackArchiveGenerator.h"
 
 
@@ -27,5 +26,3 @@ protected:
   std::string InstallPrefix;
   std::string InstallPrefix;
   std::string OutputExtension;
   std::string OutputExtension;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackDebGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackDebGenerator_h
-#define cmCPackDebGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -69,5 +68,3 @@ private:
 
 
   std::vector<std::string> packageFiles;
   std::vector<std::string> packageFiles;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackDragNDropGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackDragNDropGenerator_h
-#define cmCPackDragNDropGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -81,5 +80,3 @@ private:
   bool BreakLongLine(const std::string& line, std::vector<std::string>& lines,
   bool BreakLongLine(const std::string& line, std::vector<std::string>& lines,
                      std::string* error);
                      std::string* error);
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackExternalGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackExternalGenerator_h
-#define cmCPackExternalGenerator_h
+#pragma once
 
 
 #include <memory>
 #include <memory>
 #include <string>
 #include <string>
@@ -86,5 +85,3 @@ private:
 
 
   std::unique_ptr<cmCPackExternalVersionGenerator> Generator;
   std::unique_ptr<cmCPackExternalVersionGenerator> Generator;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackFreeBSDGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackFreeBSDGenerator_h
-#define cmCPackFreeBSDGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -33,5 +32,3 @@ protected:
   std::string var_lookup(const char* var_name);
   std::string var_lookup(const char* var_name);
   void write_manifest_fields(cmGeneratedFileStream&);
   void write_manifest_fields(cmGeneratedFileStream&);
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackGenerator_h
-#define cmCPackGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -339,5 +338,3 @@ protected:
     this->Logger->Log(logType, __FILE__, __LINE__,                            \
     this->Logger->Log(logType, __FILE__, __LINE__,                            \
                       cmCPackLog_msg.str().c_str());                          \
                       cmCPackLog_msg.str().c_str());                          \
   } while (false)
   } while (false)
-
-#endif

+ 1 - 4
Source/CPack/cmCPackGeneratorFactory.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackGeneratorFactory_h
-#define cmCPackGeneratorFactory_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -44,5 +43,3 @@ private:
   DescriptionsMap GeneratorDescriptions;
   DescriptionsMap GeneratorDescriptions;
   cmCPackLog* Logger;
   cmCPackLog* Logger;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackLog.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackLog_h
-#define cmCPackLog_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -139,5 +138,3 @@ inline std::ostream& operator<<(std::ostream& os, const cmCPackLogWrite& c)
   os.flush();
   os.flush();
   return os;
   return os;
 }
 }
-
-#endif

+ 1 - 4
Source/CPack/cmCPackNSISGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackNSISGenerator_h
-#define cmCPackNSISGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -85,5 +84,3 @@ protected:
 
 
   bool Nsis64;
   bool Nsis64;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackNuGetGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackNuGetGenerator_h
-#define cmCPackNuGetGenerator_h
+#pragma once
 
 
 #include "cmCPackGenerator.h"
 #include "cmCPackGenerator.h"
 
 
@@ -33,5 +32,3 @@ protected:
    */
    */
   void AddGeneratedPackageNames();
   void AddGeneratedPackageNames();
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackOSXX11Generator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackOSXX11Generator_h
-#define cmCPackOSXX11Generator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -38,5 +37,3 @@ protected:
                              bool copyOnly = false);
                              bool copyOnly = false);
   std::string InstallPrefix;
   std::string InstallPrefix;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackPKGGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackPKGGenerator_h
-#define cmCPackPKGGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -94,5 +93,3 @@ protected:
   // The PostFlight component when creating a metapackage
   // The PostFlight component when creating a metapackage
   cmCPackComponent PostFlightComponent;
   cmCPackComponent PostFlightComponent;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackPackageMakerGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackPackageMakerGenerator_h
-#define cmCPackPackageMakerGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -49,5 +48,3 @@ protected:
   double PackageMakerVersion;
   double PackageMakerVersion;
   unsigned int PackageCompatibilityVersion;
   unsigned int PackageCompatibilityVersion;
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackProductBuildGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackProductBuildGenerator_h
-#define cmCPackProductBuildGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -49,5 +48,3 @@ protected:
   const char* GetComponentScript(const char* script,
   const char* GetComponentScript(const char* script,
                                  const char* script_component);
                                  const char* script_component);
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackRPMGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackRPMGenerator_h
-#define cmCPackRPMGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -68,5 +67,3 @@ protected:
 
 
   void AddGeneratedPackageNames();
   void AddGeneratedPackageNames();
 };
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackSTGZGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackSTGZGenerator_h
-#define cmCPackSTGZGenerator_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -30,5 +29,3 @@ protected:
   int InitializeInternal() override;
   int InitializeInternal() override;
   int GenerateHeader(std::ostream* os) override;
   int GenerateHeader(std::ostream* os) override;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestBZR.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestBZR_h
-#define cmCTestBZR_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -50,5 +49,3 @@ private:
   friend class UpdateParser;
   friend class UpdateParser;
   friend class StatusParser;
   friend class StatusParser;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestBinPacker.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestBinPacker_h
-#define cmCTestBinPacker_h
+#pragma once
 
 
 #include <cstddef>
 #include <cstddef>
 #include <map>
 #include <map>
@@ -27,5 +26,3 @@ bool cmAllocateCTestResourcesRoundRobin(
 bool cmAllocateCTestResourcesBlock(
 bool cmAllocateCTestResourcesBlock(
   const std::map<std::string, cmCTestResourceAllocator::Resource>& resources,
   const std::map<std::string, cmCTestResourceAllocator::Resource>& resources,
   std::vector<cmCTestBinPackerAllocation>& allocations);
   std::vector<cmCTestBinPackerAllocation>& allocations);
-
-#endif

+ 1 - 4
Source/CTest/cmCTestBuildAndTestHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestBuildAndTestHandler_h
-#define cmCTestBuildAndTestHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -71,5 +70,3 @@ protected:
   bool BuildNoCMake;
   bool BuildNoCMake;
   cmDuration Timeout;
   cmDuration Timeout;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestBuildCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestBuildCommand_h
-#define cmCTestBuildCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -62,5 +61,3 @@ protected:
   std::string Flags;
   std::string Flags;
   std::string ProjectName;
   std::string ProjectName;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestBuildHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestBuildHandler_h
-#define cmCTestBuildHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -156,5 +155,3 @@ private:
   friend class LaunchHelper;
   friend class LaunchHelper;
   class FragmentCompare;
   class FragmentCompare;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestCVS.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestCVS_h
-#define cmCTestCVS_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -51,5 +50,3 @@ private:
   friend class LogParser;
   friend class LogParser;
   friend class UpdateParser;
   friend class UpdateParser;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestCommand_h
-#define cmCTestCommand_h
+#pragma once
 
 
 #include "cmCommand.h"
 #include "cmCommand.h"
 
 
@@ -27,5 +26,3 @@ public:
   cmCTest* CTest;
   cmCTest* CTest;
   cmCTestScriptHandler* CTestScriptHandler;
   cmCTestScriptHandler* CTestScriptHandler;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestConfigureCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestConfigureCommand_h
-#define cmCTestConfigureCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -45,5 +44,3 @@ protected:
 
 
   std::string Options;
   std::string Options;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestConfigureHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestConfigureHandler_h
-#define cmCTestConfigureHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -25,5 +24,3 @@ public:
 
 
   void Initialize() override;
   void Initialize() override;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestCoverageCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestCoverageCommand_h
-#define cmCTestCoverageCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -48,5 +47,3 @@ protected:
   bool LabelsMentioned;
   bool LabelsMentioned;
   std::vector<std::string> Labels;
   std::vector<std::string> Labels;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestCoverageHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestCoverageHandler_h
-#define cmCTestCoverageHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -149,5 +148,3 @@ private:
   bool IntersectsFilter(LabelSet const& labels);
   bool IntersectsFilter(LabelSet const& labels);
   bool IsFilteredOut(std::string const& source);
   bool IsFilteredOut(std::string const& source);
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestCurl.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestCurl_h
-#define cmCTestCurl_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -52,5 +51,3 @@ private:
   bool Quiet;
   bool Quiet;
   int TimeOutSeconds;
   int TimeOutSeconds;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestEmptyBinaryDirectoryCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestEmptyBinaryDirectoryCommand_h
-#define cmCTestEmptyBinaryDirectoryCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -45,5 +44,3 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) override;
                    cmExecutionStatus& status) override;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestGIT.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestGIT_h
-#define cmCTestGIT_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -53,5 +52,3 @@ public:
   friend class DiffParser;
   friend class DiffParser;
   friend class OneLineParser;
   friend class OneLineParser;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestGenericHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestGenericHandler_h
-#define cmCTestGenericHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -105,5 +104,3 @@ protected:
   cmCTestCommand* Command;
   cmCTestCommand* Command;
   int SubmitIndex;
   int SubmitIndex;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestGlobalVC.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestGlobalVC_h
-#define cmCTestGlobalVC_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -73,5 +72,3 @@ protected:
   void WriteXMLDirectory(cmXMLWriter& xml, std::string const& path,
   void WriteXMLDirectory(cmXMLWriter& xml, std::string const& path,
                          Directory const& dir);
                          Directory const& dir);
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestHG.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestHG_h
-#define cmCTestHG_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -42,5 +41,3 @@ private:
   friend class LogParser;
   friend class LogParser;
   friend class StatusParser;
   friend class StatusParser;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestHandlerCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestHandlerCommand_h
-#define cmCTestHandlerCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -58,5 +57,3 @@ protected:
   "The APPEND option marks results for append to those previously "           \
   "The APPEND option marks results for append to those previously "           \
   "submitted to a dashboard server since the last ctest_start.  "             \
   "submitted to a dashboard server since the last ctest_start.  "             \
   "Append semantics are defined by the dashboard server in use."
   "Append semantics are defined by the dashboard server in use."
-
-#endif

+ 1 - 4
Source/CTest/cmCTestLaunch.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestLaunch_h
-#define cmCTestLaunch_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -103,5 +102,3 @@ private:
   void LoadConfig();
   void LoadConfig();
   std::string SourceDir;
   std::string SourceDir;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestMemCheckCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestMemCheckCommand_h
-#define cmCTestMemCheckCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -43,5 +42,3 @@ protected:
 
 
   std::string DefectCount;
   std::string DefectCount;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestMemCheckHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestMemCheckHandler_h
-#define cmCTestMemCheckHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -157,5 +156,3 @@ private:
   //! generate the output filename for the given test index
   //! generate the output filename for the given test index
   void TestOutputFileNames(int test, std::vector<std::string>& files);
   void TestOutputFileNames(int test, std::vector<std::string>& files);
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestMultiProcessHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestMultiProcessHandler_h
-#define cmCTestMultiProcessHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -200,5 +199,3 @@ protected:
   bool Quiet;
   bool Quiet;
   bool SerialTestRunning;
   bool SerialTestRunning;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestP4.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestP4_h
-#define cmCTestP4_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -72,5 +71,3 @@ private:
   friend class DescribeParser;
   friend class DescribeParser;
   friend class DiffParser;
   friend class DiffParser;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestReadCustomFilesCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestReadCustomFilesCommand_h
-#define cmCTestReadCustomFilesCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -44,5 +43,3 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) override;
                    cmExecutionStatus& status) override;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestResourceAllocator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestResourceAllocator_h
-#define cmCTestResourceAllocator_h
+#pragma once
 
 
 #include <map>
 #include <map>
 #include <string>
 #include <string>
@@ -35,5 +34,3 @@ public:
 private:
 private:
   std::map<std::string, std::map<std::string, Resource>> Resources;
   std::map<std::string, std::map<std::string, Resource>> Resources;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestResourceGroupsLexerHelper.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestResourceGroupsLexerHelper_h
-#define cmCTestResourceGroupsLexerHelper_h
+#pragma once
 
 
 #include <string>
 #include <string>
 #include <vector>
 #include <vector>
@@ -40,5 +39,3 @@ private:
 };
 };
 
 
 #define YY_EXTRA_TYPE cmCTestResourceGroupsLexerHelper*
 #define YY_EXTRA_TYPE cmCTestResourceGroupsLexerHelper*
-
-#endif

+ 1 - 4
Source/CTest/cmCTestResourceSpec.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestResourceSpec_h
-#define cmCTestResourceSpec_h
+#pragma once
 
 
 #include <map>
 #include <map>
 #include <string>
 #include <string>
@@ -51,5 +50,3 @@ public:
   bool operator==(const cmCTestResourceSpec& other) const;
   bool operator==(const cmCTestResourceSpec& other) const;
   bool operator!=(const cmCTestResourceSpec& other) const;
   bool operator!=(const cmCTestResourceSpec& other) const;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestRunScriptCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestRunScriptCommand_h
-#define cmCTestRunScriptCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -45,5 +44,3 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) override;
                    cmExecutionStatus& status) override;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestRunTest.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestRunTest_h
-#define cmCTestRunTest_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -159,5 +158,3 @@ inline int getNumWidth(size_t n)
   }
   }
   return w;
   return w;
 }
 }
-
-#endif

+ 1 - 4
Source/CTest/cmCTestSVN.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestSVN_h
-#define cmCTestSVN_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -103,5 +102,3 @@ private:
   friend class UpdateParser;
   friend class UpdateParser;
   friend class ExternalParser;
   friend class ExternalParser;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestScriptHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestScriptHandler_h
-#define cmCTestScriptHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -176,5 +175,3 @@ private:
   std::unique_ptr<cmGlobalGenerator> GlobalGenerator;
   std::unique_ptr<cmGlobalGenerator> GlobalGenerator;
   std::unique_ptr<cmake> CMake;
   std::unique_ptr<cmake> CMake;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestSleepCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestSleepCommand_h
-#define cmCTestSleepCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -45,5 +44,3 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
   bool InitialPass(std::vector<std::string> const& args,
                    cmExecutionStatus& status) override;
                    cmExecutionStatus& status) override;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestStartCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestStartCommand_h
-#define cmCTestStartCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -62,5 +61,3 @@ private:
   bool CreateNewTag;
   bool CreateNewTag;
   bool Quiet;
   bool Quiet;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestSubmitCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestSubmitCommand_h
-#define cmCTestSubmitCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -55,5 +54,3 @@ protected:
   std::vector<std::string> HttpHeaders;
   std::vector<std::string> HttpHeaders;
   std::vector<std::string> Parts;
   std::vector<std::string> Parts;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestSubmitHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestSubmitHandler_h
-#define cmCTestSubmitHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -77,5 +76,3 @@ private:
   std::set<std::string> Files;
   std::set<std::string> Files;
   std::vector<std::string> HttpHeaders;
   std::vector<std::string> HttpHeaders;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestTestCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestTestCommand_h
-#define cmCTestTestCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -62,5 +61,3 @@ protected:
   std::string ResourceSpecFile;
   std::string ResourceSpecFile;
   bool StopOnFailure = false;
   bool StopOnFailure = false;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestTestHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestTestHandler_h
-#define cmCTestTestHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -360,5 +359,3 @@ private:
   int RepeatCount = 1;
   int RepeatCount = 1;
   bool RerunFailed;
   bool RerunFailed;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestUpdateCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestUpdateCommand_h
-#define cmCTestUpdateCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -42,5 +41,3 @@ public:
 protected:
 protected:
   cmCTestGenericHandler* InitializeHandler() override;
   cmCTestGenericHandler* InitializeHandler() override;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestUpdateHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestUpdateHandler_h
-#define cmCTestUpdateHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -63,5 +62,3 @@ private:
   int DetectVCS(const char* dir);
   int DetectVCS(const char* dir);
   bool SelectVCS();
   bool SelectVCS();
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestUploadCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestUploadCommand_h
-#define cmCTestUploadCommand_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -48,5 +47,3 @@ protected:
 
 
   std::vector<std::string> Files;
   std::vector<std::string> Files;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestUploadHandler.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestUploadHandler_h
-#define cmCTestUploadHandler_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -36,5 +35,3 @@ public:
 private:
 private:
   std::set<std::string> Files;
   std::set<std::string> Files;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestVC.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestVC_h
-#define cmCTestVC_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -150,5 +149,3 @@ protected:
   // Count paths reported with each PathStatus value.
   // Count paths reported with each PathStatus value.
   int PathCount[3];
   int PathCount[3];
 };
 };
-
-#endif

+ 1 - 3
Source/CTest/cmParseBlanketJSCoverage.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseBlanketJSCoverage_h
-#define cmParseBlanketJSCoverage_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -39,4 +38,3 @@ protected:
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTest* CTest;
   cmCTest* CTest;
 };
 };
-#endif

+ 1 - 4
Source/CTest/cmParseCacheCoverage.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseCacheCoverage_h
-#define cmParseCacheCoverage_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -31,5 +30,3 @@ protected:
   // Read a single mcov file
   // Read a single mcov file
   bool ReadCMCovFile(const char* f);
   bool ReadCMCovFile(const char* f);
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmParseCoberturaCoverage.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseCoberturaCoverage_h
-#define cmParseCoberturaCoverage_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -41,5 +40,3 @@ private:
   cmCTest* CTest;
   cmCTest* CTest;
   std::string CurFileName;
   std::string CurFileName;
 };
 };
-
-#endif

+ 1 - 3
Source/CTest/cmParseDelphiCoverage.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseDelphiCoverage_h
-#define cmParseDelphiCoverage_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -35,4 +34,3 @@ protected:
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTest* CTest;
   cmCTest* CTest;
 };
 };
-#endif

+ 1 - 4
Source/CTest/cmParseGTMCoverage.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseGTMCoverage_h
-#define cmParseGTMCoverage_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -37,5 +36,3 @@ protected:
   bool ParseMCOVLine(std::string const& line, std::string& routine,
   bool ParseMCOVLine(std::string const& line, std::string& routine,
                      std::string& function, int& linenumber, int& count);
                      std::string& function, int& linenumber, int& count);
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmParseJacocoCoverage.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseJacocoCoverage_h
-#define cmParseJacocoCoverage_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -49,5 +48,3 @@ private:
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTest* CTest;
   cmCTest* CTest;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmParseMumpsCoverage.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseMumpsCoverage_h
-#define cmParseMumpsCoverage_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -43,5 +42,3 @@ protected:
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTest* CTest;
   cmCTest* CTest;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmParsePHPCoverage.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParsePHPCoverage_h
-#define cmParsePHPCoverage_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -35,5 +34,3 @@ private:
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTest* CTest;
   cmCTest* CTest;
 };
 };
-
-#endif

+ 1 - 4
Source/CTest/cmProcess.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmProcess_h
-#define cmProcess_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -132,5 +131,3 @@ private:
   int Id;
   int Id;
   int64_t ExitValue;
   int64_t ExitValue;
 };
 };
-
-#endif

+ 1 - 4
Source/CursesDialog/cmCursesBoolWidget.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesBoolWidget_h
-#define cmCursesBoolWidget_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -29,5 +28,3 @@ public:
   void SetValueAsBool(bool value);
   void SetValueAsBool(bool value);
   bool GetValueAsBool();
   bool GetValueAsBool();
 };
 };
-
-#endif // cmCursesBoolWidget_h

+ 1 - 4
Source/CursesDialog/cmCursesCacheEntryComposite.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesCacheEntryComposite_h
-#define cmCursesCacheEntryComposite_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -41,5 +40,3 @@ protected:
   int LabelWidth;
   int LabelWidth;
   int EntryWidth;
   int EntryWidth;
 };
 };
-
-#endif // cmCursesCacheEntryComposite_h

+ 1 - 4
Source/CursesDialog/cmCursesColor.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesColor_h
-#define cmCursesColor_h
+#pragma once
 
 
 class cmCursesColor
 class cmCursesColor
 {
 {
@@ -23,5 +22,3 @@ public:
 protected:
 protected:
   static short GetColor(char id, short fallback);
   static short GetColor(char id, short fallback);
 };
 };
-
-#endif // cmCursesColor_h

+ 1 - 4
Source/CursesDialog/cmCursesDummyWidget.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesDummyWidget_h
-#define cmCursesDummyWidget_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -24,5 +23,3 @@ public:
   // handled.
   // handled.
   bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) override;
   bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) override;
 };
 };
-
-#endif // cmCursesDummyWidget_h

+ 1 - 4
Source/CursesDialog/cmCursesFilePathWidget.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesFilePathWidget_h
-#define cmCursesFilePathWidget_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -15,5 +14,3 @@ public:
   cmCursesFilePathWidget(cmCursesFilePathWidget const&) = delete;
   cmCursesFilePathWidget(cmCursesFilePathWidget const&) = delete;
   cmCursesFilePathWidget& operator=(cmCursesFilePathWidget const&) = delete;
   cmCursesFilePathWidget& operator=(cmCursesFilePathWidget const&) = delete;
 };
 };
-
-#endif // cmCursesFilePathWidget_h

+ 1 - 4
Source/CursesDialog/cmCursesForm.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesForm_h
-#define cmCursesForm_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -62,5 +61,3 @@ protected:
 
 
   FORM* Form;
   FORM* Form;
 };
 };
-
-#endif // cmCursesForm_h

+ 1 - 4
Source/CursesDialog/cmCursesLabelWidget.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesLabelWidget_h
-#define cmCursesLabelWidget_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -28,5 +27,3 @@ public:
   // handled
   // handled
   bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) override;
   bool HandleInput(int& key, cmCursesMainForm* fm, WINDOW* w) override;
 };
 };
-
-#endif // cmCursesLabelWidget_h

+ 1 - 4
Source/CursesDialog/cmCursesLongMessageForm.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesLongMessageForm_h
-#define cmCursesLongMessageForm_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -59,5 +58,3 @@ protected:
 
 
   FIELD* Fields[2];
   FIELD* Fields[2];
 };
 };
-
-#endif // cmCursesLongMessageForm_h

+ 1 - 4
Source/CursesDialog/cmCursesMainForm.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesMainForm_h
-#define cmCursesMainForm_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -170,5 +169,3 @@ protected:
   std::string OldSearchString;
   std::string OldSearchString;
   bool SearchMode;
   bool SearchMode;
 };
 };
-
-#endif // cmCursesMainForm_h

+ 1 - 4
Source/CursesDialog/cmCursesOptionsWidget.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesOptionsWidget_h
-#define cmCursesOptionsWidget_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -35,5 +34,3 @@ protected:
   std::vector<std::string> Options;
   std::vector<std::string> Options;
   std::vector<std::string>::size_type CurrentOption;
   std::vector<std::string>::size_type CurrentOption;
 };
 };
-
-#endif // cmCursesOptionsWidget_h

+ 1 - 4
Source/CursesDialog/cmCursesPathWidget.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesPathWidget_h
-#define cmCursesPathWidget_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -34,5 +33,3 @@ protected:
   bool Cycle;
   bool Cycle;
   std::string::size_type CurrentIndex;
   std::string::size_type CurrentIndex;
 };
 };
-
-#endif // cmCursesPathWidget_h

+ 1 - 4
Source/CursesDialog/cmCursesStandardIncludes.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesStandardIncludes_h
-#define cmCursesStandardIncludes_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -41,5 +40,3 @@ inline void curses_clear()
 #  undef __attribute__
 #  undef __attribute__
 #endif
 #endif
 #undef cm_no__attribute__
 #undef cm_no__attribute__
-
-#endif // cmCursesStandardIncludes_h

+ 1 - 4
Source/CursesDialog/cmCursesStringWidget.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesStringWidget_h
-#define cmCursesStringWidget_h
+#pragma once
 
 
 #include "cmConfigure.h" // IWYU pragma: keep
 #include "cmConfigure.h" // IWYU pragma: keep
 
 
@@ -65,5 +64,3 @@ protected:
   std::string OriginalString;
   std::string OriginalString;
   bool Done;
   bool Done;
 };
 };
-
-#endif // cmCursesStringWidget_h

Some files were not shown because too many files changed in this diff