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.
stage/master/nightly/2020/09/04
Kitware Robot 2020-08-29 16:27:37 -04:00 committed by Kyle Edwards
parent 093ba4061d
commit bdca8b01d2
508 changed files with 508 additions and 2011 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 cmCursesStringWidget_h
#define cmCursesStringWidget_h
#pragma once
#include "cmConfigure.h" // IWYU pragma: keep
@ -65,5 +64,3 @@ protected:
std::string OriginalString;
bool Done;
};
#endif // cmCursesStringWidget_h

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