1
0
Эх сурвалжийг харах

Merge topic 'pragma-once'

5585e8575b Help: Add note about #pragma once
407afc0f91 Bootstrap: Use #pragma once in cmThirdParty.h
aa7bce8495 Utilities/Scripts: Remove temporary #pragma once conversion script
bdca8b01d2 Modernize: Use #pragma once in all header files
093ba4061d Utilities/Scripts: Add temporary #pragma once conversion script

Acked-by: Kitware Robot <[email protected]>
Acked-by: Raul Tambre <[email protected]>
Merge-request: !5171
Brad King 5 жил өмнө
parent
commit
b03bc81d62
100 өөрчлөгдсөн 102 нэмэгдсэн , 394 устгасан
  1. 3 0
      Help/dev/source.rst
  2. 1 4
      Source/CPack/IFW/cmCPackIFWCommon.h
  3. 1 4
      Source/CPack/IFW/cmCPackIFWGenerator.h
  4. 1 4
      Source/CPack/IFW/cmCPackIFWInstaller.h
  5. 1 4
      Source/CPack/IFW/cmCPackIFWPackage.h
  6. 1 4
      Source/CPack/IFW/cmCPackIFWRepository.h
  7. 1 4
      Source/CPack/WiX/cmCMakeToWixPath.h
  8. 1 4
      Source/CPack/WiX/cmCPackWIXGenerator.h
  9. 1 4
      Source/CPack/WiX/cmWIXAccessControlList.h
  10. 1 4
      Source/CPack/WiX/cmWIXDirectoriesSourceWriter.h
  11. 1 4
      Source/CPack/WiX/cmWIXFeaturesSourceWriter.h
  12. 1 4
      Source/CPack/WiX/cmWIXFilesSourceWriter.h
  13. 1 4
      Source/CPack/WiX/cmWIXPatch.h
  14. 1 4
      Source/CPack/WiX/cmWIXPatchParser.h
  15. 1 4
      Source/CPack/WiX/cmWIXRichTextFormatWriter.h
  16. 1 4
      Source/CPack/WiX/cmWIXShortcut.h
  17. 1 4
      Source/CPack/WiX/cmWIXSourceWriter.h
  18. 1 4
      Source/CPack/cmCPackArchiveGenerator.h
  19. 1 4
      Source/CPack/cmCPackBundleGenerator.h
  20. 1 4
      Source/CPack/cmCPackComponentGroup.h
  21. 1 4
      Source/CPack/cmCPackCygwinBinaryGenerator.h
  22. 1 4
      Source/CPack/cmCPackCygwinSourceGenerator.h
  23. 1 4
      Source/CPack/cmCPackDebGenerator.h
  24. 1 4
      Source/CPack/cmCPackDragNDropGenerator.h
  25. 1 4
      Source/CPack/cmCPackExternalGenerator.h
  26. 1 4
      Source/CPack/cmCPackFreeBSDGenerator.h
  27. 1 4
      Source/CPack/cmCPackGenerator.h
  28. 1 4
      Source/CPack/cmCPackGeneratorFactory.h
  29. 1 4
      Source/CPack/cmCPackLog.h
  30. 1 4
      Source/CPack/cmCPackNSISGenerator.h
  31. 1 4
      Source/CPack/cmCPackNuGetGenerator.h
  32. 1 4
      Source/CPack/cmCPackOSXX11Generator.h
  33. 1 4
      Source/CPack/cmCPackPKGGenerator.h
  34. 1 4
      Source/CPack/cmCPackPackageMakerGenerator.h
  35. 1 4
      Source/CPack/cmCPackProductBuildGenerator.h
  36. 1 4
      Source/CPack/cmCPackRPMGenerator.h
  37. 1 4
      Source/CPack/cmCPackSTGZGenerator.h
  38. 1 4
      Source/CTest/cmCTestBZR.h
  39. 1 4
      Source/CTest/cmCTestBinPacker.h
  40. 1 4
      Source/CTest/cmCTestBuildAndTestHandler.h
  41. 1 4
      Source/CTest/cmCTestBuildCommand.h
  42. 1 4
      Source/CTest/cmCTestBuildHandler.h
  43. 1 4
      Source/CTest/cmCTestCVS.h
  44. 1 4
      Source/CTest/cmCTestCommand.h
  45. 1 4
      Source/CTest/cmCTestConfigureCommand.h
  46. 1 4
      Source/CTest/cmCTestConfigureHandler.h
  47. 1 4
      Source/CTest/cmCTestCoverageCommand.h
  48. 1 4
      Source/CTest/cmCTestCoverageHandler.h
  49. 1 4
      Source/CTest/cmCTestCurl.h
  50. 1 4
      Source/CTest/cmCTestEmptyBinaryDirectoryCommand.h
  51. 1 4
      Source/CTest/cmCTestGIT.h
  52. 1 4
      Source/CTest/cmCTestGenericHandler.h
  53. 1 4
      Source/CTest/cmCTestGlobalVC.h
  54. 1 4
      Source/CTest/cmCTestHG.h
  55. 1 4
      Source/CTest/cmCTestHandlerCommand.h
  56. 1 4
      Source/CTest/cmCTestLaunch.h
  57. 1 4
      Source/CTest/cmCTestMemCheckCommand.h
  58. 1 4
      Source/CTest/cmCTestMemCheckHandler.h
  59. 1 4
      Source/CTest/cmCTestMultiProcessHandler.h
  60. 1 4
      Source/CTest/cmCTestP4.h
  61. 1 4
      Source/CTest/cmCTestReadCustomFilesCommand.h
  62. 1 4
      Source/CTest/cmCTestResourceAllocator.h
  63. 1 4
      Source/CTest/cmCTestResourceGroupsLexerHelper.h
  64. 1 4
      Source/CTest/cmCTestResourceSpec.h
  65. 1 4
      Source/CTest/cmCTestRunScriptCommand.h
  66. 1 4
      Source/CTest/cmCTestRunTest.h
  67. 1 4
      Source/CTest/cmCTestSVN.h
  68. 1 4
      Source/CTest/cmCTestScriptHandler.h
  69. 1 4
      Source/CTest/cmCTestSleepCommand.h
  70. 1 4
      Source/CTest/cmCTestStartCommand.h
  71. 1 4
      Source/CTest/cmCTestSubmitCommand.h
  72. 1 4
      Source/CTest/cmCTestSubmitHandler.h
  73. 1 4
      Source/CTest/cmCTestTestCommand.h
  74. 1 4
      Source/CTest/cmCTestTestHandler.h
  75. 1 4
      Source/CTest/cmCTestUpdateCommand.h
  76. 1 4
      Source/CTest/cmCTestUpdateHandler.h
  77. 1 4
      Source/CTest/cmCTestUploadCommand.h
  78. 1 4
      Source/CTest/cmCTestUploadHandler.h
  79. 1 4
      Source/CTest/cmCTestVC.h
  80. 1 3
      Source/CTest/cmParseBlanketJSCoverage.h
  81. 1 4
      Source/CTest/cmParseCacheCoverage.h
  82. 1 4
      Source/CTest/cmParseCoberturaCoverage.h
  83. 1 3
      Source/CTest/cmParseDelphiCoverage.h
  84. 1 4
      Source/CTest/cmParseGTMCoverage.h
  85. 1 4
      Source/CTest/cmParseJacocoCoverage.h
  86. 1 4
      Source/CTest/cmParseMumpsCoverage.h
  87. 1 4
      Source/CTest/cmParsePHPCoverage.h
  88. 1 4
      Source/CTest/cmProcess.h
  89. 1 4
      Source/CursesDialog/cmCursesBoolWidget.h
  90. 1 4
      Source/CursesDialog/cmCursesCacheEntryComposite.h
  91. 1 4
      Source/CursesDialog/cmCursesColor.h
  92. 1 4
      Source/CursesDialog/cmCursesDummyWidget.h
  93. 1 4
      Source/CursesDialog/cmCursesFilePathWidget.h
  94. 1 4
      Source/CursesDialog/cmCursesForm.h
  95. 1 4
      Source/CursesDialog/cmCursesLabelWidget.h
  96. 1 4
      Source/CursesDialog/cmCursesLongMessageForm.h
  97. 1 4
      Source/CursesDialog/cmCursesMainForm.h
  98. 1 4
      Source/CursesDialog/cmCursesOptionsWidget.h
  99. 1 4
      Source/CursesDialog/cmCursesPathWidget.h
  100. 1 4
      Source/CursesDialog/cmCursesStandardIncludes.h

+ 3 - 0
Help/dev/source.rst

@@ -158,6 +158,9 @@ These are:
   * ``cm::is_unique_ptr``:
     Checks if a type is a ``std::unique_ptr`` type.
 
+CMake assumes the compiler supports ``#pragma once``. Use this for all
+hand-written header files.
+
 Dynamic Memory Management
 =========================
 

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

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackIFWCommon_h
-#define cmCPackIFWCommon_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -77,5 +76,3 @@ protected:
                              cmCPackLog_msg.str().c_str());                   \
     }                                                                         \
   } 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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackIFWGenerator_h
-#define cmCPackIFWGenerator_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -152,5 +151,3 @@ private:
   std::vector<std::string> PkgsDirsVector;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackIFWInstaller_h
-#define cmCPackIFWInstaller_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -132,5 +131,3 @@ protected:
   void printSkippedOptionWarning(const std::string& optionName,
                                  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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackIFWPackage_h
-#define cmCPackIFWPackage_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -149,5 +148,3 @@ public:
   // Patch to package 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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackIFWRepository_h
-#define cmCPackIFWRepository_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -84,5 +83,3 @@ public:
   RepositoriesVector RepositoryUpdate;
   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
    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 <string>
 
 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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackWIXGenerator_h
-#define cmCPackWIXGenerator_h
+#pragma once
 
 #include <map>
 #include <memory>
@@ -171,5 +170,3 @@ private:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXAccessControlList_h
-#define cmWIXAccessControlList_h
+#pragma once
 
 #include "cmCPackLog.h"
 #include "cmInstalledFile.h"
@@ -29,5 +28,3 @@ private:
   cmInstalledFile const& InstalledFile;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXDirectoriesSourceWriter_h
-#define cmWIXDirectoriesSourceWriter_h
+#pragma once
 
 #include <string>
 
@@ -29,5 +28,3 @@ public:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXFeaturesSourceWriter_h
-#define cmWIXFeaturesSourceWriter_h
+#pragma once
 
 #include "cmCPackGenerator.h"
 #include "cmWIXPatch.h"
@@ -27,5 +26,3 @@ public:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXFilesSourceWriter_h
-#define cmWIXFilesSourceWriter_h
+#pragma once
 
 #include "cmCPackGenerator.h"
 #include "cmWIXPatch.h"
@@ -37,5 +36,3 @@ public:
                                 std::string const& filePath, cmWIXPatch& patch,
                                 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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXPatch_h
-#define cmWIXPatch_h
+#pragma once
 
 #include <string>
 
@@ -33,5 +32,3 @@ private:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackWIXPatchParser_h
-#define cmCPackWIXPatchParser_h
+#pragma once
 
 #include <map>
 #include <memory>
@@ -91,5 +90,3 @@ private:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXRichTextFormatWriter_h
-#define cmWIXRichTextFormatWriter_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -42,5 +41,3 @@ private:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXShortcut_h
-#define cmWIXShortcut_h
+#pragma once
 
 #include <map>
 #include <set>
@@ -56,5 +55,3 @@ private:
   shortcut_type_map_t Shortcuts;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmWIXSourceWriter_h
-#define cmWIXSourceWriter_h
+#pragma once
 
 #include <string>
 #include <vector>
@@ -76,5 +75,3 @@ private:
 
   GuidType ComponentGuidType;
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackArchiveGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackArchiveGenerator_h
-#define cmCPackArchiveGenerator_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -93,5 +92,3 @@ private:
   std::string ArchiveFormat;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackBundleGenerator_h
-#define cmCPackBundleGenerator_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -33,5 +32,3 @@ protected:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackComponentGroup_h
-#define cmCPackComponentGroup_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -167,5 +166,3 @@ public:
   /// The list of 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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackCygwinBinaryGenerator_h
-#define cmCPackCygwinBinaryGenerator_h
+#pragma once
 
 #include "cmCPackArchiveGenerator.h"
 
@@ -25,5 +24,3 @@ protected:
   virtual const char* GetOutputExtension();
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackCygwinSourceGenerator_h
-#define cmCPackCygwinSourceGenerator_h
+#pragma once
 
 #include "cmCPackArchiveGenerator.h"
 
@@ -27,5 +26,3 @@ protected:
   std::string InstallPrefix;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackDebGenerator_h
-#define cmCPackDebGenerator_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -69,5 +68,3 @@ private:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackDragNDropGenerator_h
-#define cmCPackDragNDropGenerator_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -81,5 +80,3 @@ private:
   bool BreakLongLine(const std::string& line, std::vector<std::string>& lines,
                      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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackExternalGenerator_h
-#define cmCPackExternalGenerator_h
+#pragma once
 
 #include <memory>
 #include <string>
@@ -86,5 +85,3 @@ private:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackFreeBSDGenerator_h
-#define cmCPackFreeBSDGenerator_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -33,5 +32,3 @@ protected:
   std::string var_lookup(const char* var_name);
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackGenerator_h
-#define cmCPackGenerator_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -339,5 +338,3 @@ protected:
     this->Logger->Log(logType, __FILE__, __LINE__,                            \
                       cmCPackLog_msg.str().c_str());                          \
   } while (false)
-
-#endif

+ 1 - 4
Source/CPack/cmCPackGeneratorFactory.h

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

+ 1 - 4
Source/CPack/cmCPackLog.h

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

+ 1 - 4
Source/CPack/cmCPackNSISGenerator.h

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

+ 1 - 4
Source/CPack/cmCPackNuGetGenerator.h

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

+ 1 - 4
Source/CPack/cmCPackOSXX11Generator.h

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

+ 1 - 4
Source/CPack/cmCPackPackageMakerGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackPackageMakerGenerator_h
-#define cmCPackPackageMakerGenerator_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -49,5 +48,3 @@ protected:
   double PackageMakerVersion;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackProductBuildGenerator_h
-#define cmCPackProductBuildGenerator_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -49,5 +48,3 @@ protected:
   const char* GetComponentScript(const char* script,
                                  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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackRPMGenerator_h
-#define cmCPackRPMGenerator_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -68,5 +67,3 @@ protected:
 
   void AddGeneratedPackageNames();
 };
-
-#endif

+ 1 - 4
Source/CPack/cmCPackSTGZGenerator.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCPackSTGZGenerator_h
-#define cmCPackSTGZGenerator_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -30,5 +29,3 @@ protected:
   int InitializeInternal() 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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestBZR_h
-#define cmCTestBZR_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -50,5 +49,3 @@ private:
   friend class UpdateParser;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestBinPacker_h
-#define cmCTestBinPacker_h
+#pragma once
 
 #include <cstddef>
 #include <map>
@@ -27,5 +26,3 @@ bool cmAllocateCTestResourcesRoundRobin(
 bool cmAllocateCTestResourcesBlock(
   const std::map<std::string, cmCTestResourceAllocator::Resource>& resources,
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestBuildAndTestHandler_h
-#define cmCTestBuildAndTestHandler_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -71,5 +70,3 @@ protected:
   bool BuildNoCMake;
   cmDuration Timeout;
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestBuildCommand.h

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

+ 1 - 4
Source/CTest/cmCTestCVS.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestCVS_h
-#define cmCTestCVS_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -51,5 +50,3 @@ private:
   friend class LogParser;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestCommand_h
-#define cmCTestCommand_h
+#pragma once
 
 #include "cmCommand.h"
 
@@ -27,5 +26,3 @@ public:
   cmCTest* CTest;
   cmCTestScriptHandler* CTestScriptHandler;
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestConfigureCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestConfigureCommand_h
-#define cmCTestConfigureCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -45,5 +44,3 @@ protected:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestConfigureHandler_h
-#define cmCTestConfigureHandler_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -25,5 +24,3 @@ public:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestCoverageCommand_h
-#define cmCTestCoverageCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -48,5 +47,3 @@ protected:
   bool LabelsMentioned;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestCoverageHandler_h
-#define cmCTestCoverageHandler_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -149,5 +148,3 @@ private:
   bool IntersectsFilter(LabelSet const& labels);
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestCurl_h
-#define cmCTestCurl_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -52,5 +51,3 @@ private:
   bool Quiet;
   int TimeOutSeconds;
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestEmptyBinaryDirectoryCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestEmptyBinaryDirectoryCommand_h
-#define cmCTestEmptyBinaryDirectoryCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -45,5 +44,3 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestGIT_h
-#define cmCTestGIT_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -53,5 +52,3 @@ public:
   friend class DiffParser;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestGenericHandler_h
-#define cmCTestGenericHandler_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -105,5 +104,3 @@ protected:
   cmCTestCommand* Command;
   int SubmitIndex;
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestGlobalVC.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestGlobalVC_h
-#define cmCTestGlobalVC_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -73,5 +72,3 @@ protected:
   void WriteXMLDirectory(cmXMLWriter& xml, std::string const& path,
                          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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestHG_h
-#define cmCTestHG_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -42,5 +41,3 @@ private:
   friend class LogParser;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestHandlerCommand_h
-#define cmCTestHandlerCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -58,5 +57,3 @@ protected:
   "The APPEND option marks results for append to those previously "           \
   "submitted to a dashboard server since the last ctest_start.  "             \
   "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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestLaunch_h
-#define cmCTestLaunch_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -103,5 +102,3 @@ private:
   void LoadConfig();
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestMemCheckCommand_h
-#define cmCTestMemCheckCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -43,5 +42,3 @@ protected:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestMemCheckHandler_h
-#define cmCTestMemCheckHandler_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -157,5 +156,3 @@ private:
   //! generate the output filename for the given test index
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestMultiProcessHandler_h
-#define cmCTestMultiProcessHandler_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -200,5 +199,3 @@ protected:
   bool Quiet;
   bool SerialTestRunning;
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestP4.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestP4_h
-#define cmCTestP4_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -72,5 +71,3 @@ private:
   friend class DescribeParser;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestReadCustomFilesCommand_h
-#define cmCTestReadCustomFilesCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -44,5 +43,3 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestResourceAllocator_h
-#define cmCTestResourceAllocator_h
+#pragma once
 
 #include <map>
 #include <string>
@@ -35,5 +34,3 @@ public:
 private:
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestResourceGroupsLexerHelper_h
-#define cmCTestResourceGroupsLexerHelper_h
+#pragma once
 
 #include <string>
 #include <vector>
@@ -40,5 +39,3 @@ private:
 };
 
 #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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestResourceSpec_h
-#define cmCTestResourceSpec_h
+#pragma once
 
 #include <map>
 #include <string>
@@ -51,5 +50,3 @@ public:
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestRunScriptCommand_h
-#define cmCTestRunScriptCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -45,5 +44,3 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestRunTest_h
-#define cmCTestRunTest_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -159,5 +158,3 @@ inline int getNumWidth(size_t n)
   }
   return w;
 }
-
-#endif

+ 1 - 4
Source/CTest/cmCTestSVN.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestSVN_h
-#define cmCTestSVN_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -103,5 +102,3 @@ private:
   friend class UpdateParser;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestScriptHandler_h
-#define cmCTestScriptHandler_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -176,5 +175,3 @@ private:
   std::unique_ptr<cmGlobalGenerator> GlobalGenerator;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestSleepCommand_h
-#define cmCTestSleepCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -45,5 +44,3 @@ public:
   bool InitialPass(std::vector<std::string> const& args,
                    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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestStartCommand_h
-#define cmCTestStartCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -62,5 +61,3 @@ private:
   bool CreateNewTag;
   bool Quiet;
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestSubmitCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestSubmitCommand_h
-#define cmCTestSubmitCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -55,5 +54,3 @@ protected:
   std::vector<std::string> HttpHeaders;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestSubmitHandler_h
-#define cmCTestSubmitHandler_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -77,5 +76,3 @@ private:
   std::set<std::string> Files;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestTestCommand_h
-#define cmCTestTestCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -62,5 +61,3 @@ protected:
   std::string ResourceSpecFile;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestTestHandler_h
-#define cmCTestTestHandler_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -360,5 +359,3 @@ private:
   int RepeatCount = 1;
   bool RerunFailed;
 };
-
-#endif

+ 1 - 4
Source/CTest/cmCTestUpdateCommand.h

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

+ 1 - 4
Source/CTest/cmCTestUploadCommand.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestUploadCommand_h
-#define cmCTestUploadCommand_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -48,5 +47,3 @@ protected:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestUploadHandler_h
-#define cmCTestUploadHandler_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -36,5 +35,3 @@ public:
 private:
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCTestVC_h
-#define cmCTestVC_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -150,5 +149,3 @@ protected:
   // Count paths reported with each PathStatus value.
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseBlanketJSCoverage_h
-#define cmParseBlanketJSCoverage_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -39,4 +38,3 @@ protected:
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTest* CTest;
 };
-#endif

+ 1 - 4
Source/CTest/cmParseCacheCoverage.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseCacheCoverage_h
-#define cmParseCacheCoverage_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -31,5 +30,3 @@ protected:
   // Read a single mcov file
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseCoberturaCoverage_h
-#define cmParseCoberturaCoverage_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -41,5 +40,3 @@ private:
   cmCTest* CTest;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseDelphiCoverage_h
-#define cmParseDelphiCoverage_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -35,4 +34,3 @@ protected:
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTest* CTest;
 };
-#endif

+ 1 - 4
Source/CTest/cmParseGTMCoverage.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseGTMCoverage_h
-#define cmParseGTMCoverage_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -37,5 +36,3 @@ protected:
   bool ParseMCOVLine(std::string const& line, std::string& routine,
                      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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmParseJacocoCoverage_h
-#define cmParseJacocoCoverage_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -49,5 +48,3 @@ private:
   cmCTestCoverageHandlerContainer& Coverage;
   cmCTest* CTest;
 };
-
-#endif

+ 1 - 4
Source/CTest/cmParseMumpsCoverage.h

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

+ 1 - 4
Source/CTest/cmParsePHPCoverage.h

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

+ 1 - 4
Source/CTest/cmProcess.h

@@ -1,7 +1,6 @@
 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmProcess_h
-#define cmProcess_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -132,5 +131,3 @@ private:
   int Id;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesBoolWidget_h
-#define cmCursesBoolWidget_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -29,5 +28,3 @@ public:
   void SetValueAsBool(bool value);
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesCacheEntryComposite_h
-#define cmCursesCacheEntryComposite_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -41,5 +40,3 @@ protected:
   int LabelWidth;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesColor_h
-#define cmCursesColor_h
+#pragma once
 
 class cmCursesColor
 {
@@ -23,5 +22,3 @@ public:
 protected:
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesDummyWidget_h
-#define cmCursesDummyWidget_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -24,5 +23,3 @@ public:
   // handled.
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesFilePathWidget_h
-#define cmCursesFilePathWidget_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -15,5 +14,3 @@ public:
   cmCursesFilePathWidget(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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesForm_h
-#define cmCursesForm_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -62,5 +61,3 @@ protected:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesLabelWidget_h
-#define cmCursesLabelWidget_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -28,5 +27,3 @@ public:
   // handled
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesLongMessageForm_h
-#define cmCursesLongMessageForm_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -59,5 +58,3 @@ protected:
 
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesMainForm_h
-#define cmCursesMainForm_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -170,5 +169,3 @@ protected:
   std::string OldSearchString;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesOptionsWidget_h
-#define cmCursesOptionsWidget_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -35,5 +34,3 @@ protected:
   std::vector<std::string> Options;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesPathWidget_h
-#define cmCursesPathWidget_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -34,5 +33,3 @@ protected:
   bool Cycle;
   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
    file Copyright.txt or https://cmake.org/licensing for details.  */
-#ifndef cmCursesStandardIncludes_h
-#define cmCursesStandardIncludes_h
+#pragma once
 
 #include "cmConfigure.h" // IWYU pragma: keep
 
@@ -41,5 +40,3 @@ inline void curses_clear()
 #  undef __attribute__
 #endif
 #undef cm_no__attribute__
-
-#endif // cmCursesStandardIncludes_h

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно