mirror of
https://github.com/Kitware/CMake.git
synced 2025-05-09 23:08:18 +08:00

Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`, now with "east const" enforcement. Use `clang-format` version 18. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit. Issue: #26123
55 lines
1.6 KiB
C++
55 lines
1.6 KiB
C++
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#pragma once
|
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "cmFileCopier.h"
|
|
#include "cmInstallMode.h"
|
|
#include "cmInstallType.h"
|
|
|
|
class cmExecutionStatus;
|
|
|
|
struct cmFileInstaller : public cmFileCopier
|
|
{
|
|
cmFileInstaller(cmExecutionStatus& status);
|
|
~cmFileInstaller() override;
|
|
|
|
protected:
|
|
cmInstallType InstallType = cmInstallType_FILES;
|
|
cmInstallMode InstallMode = cmInstallMode::COPY;
|
|
bool Optional = false;
|
|
bool MessageAlways = false;
|
|
bool MessageLazy = false;
|
|
bool MessageNever = false;
|
|
int DestDirLength = 0;
|
|
std::string Rename;
|
|
|
|
std::string Manifest;
|
|
void ManifestAppend(std::string const& file);
|
|
|
|
std::string const& ToName(std::string const& fromName) override;
|
|
|
|
void ReportCopy(std::string const& toFile, Type type, bool copy) override;
|
|
bool ReportMissing(std::string const& fromFile) override;
|
|
bool Install(std::string const& fromFile,
|
|
std::string const& toFile) override;
|
|
bool InstallFile(std::string const& fromFile, std::string const& toFile,
|
|
MatchProperties match_properties) override;
|
|
bool Parse(std::vector<std::string> const& args) override;
|
|
enum
|
|
{
|
|
DoingType = DoingLast1,
|
|
DoingRename,
|
|
DoingLast2
|
|
};
|
|
bool CheckKeyword(std::string const& arg) override;
|
|
bool CheckValue(std::string const& arg) override;
|
|
void DefaultFilePermissions() override;
|
|
bool GetTargetTypeFromString(std::string const& stype);
|
|
bool HandleInstallDestination();
|
|
};
|