diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-27 11:14:38 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-08-27 11:40:40 +0200 |
commit | bc39ecc0385dd7e0cb9e1df84628e4c6dde34ab5 (patch) | |
tree | 4556b3f5f5898ef56316fc1612a04402b79903ef /src/buildtool/file_system/file_system_manager.hpp | |
parent | 340f3478dc2bffe1a75496e5c120e88274fee698 (diff) | |
download | justbuild-bc39ecc0385dd7e0cb9e1df84628e4c6dde34ab5.tar.gz |
Reformat code to comply with clang-format 18
... while keeping our .clang-format file.
Diffstat (limited to 'src/buildtool/file_system/file_system_manager.hpp')
-rw-r--r-- | src/buildtool/file_system/file_system_manager.hpp | 23 |
1 files changed, 12 insertions, 11 deletions
diff --git a/src/buildtool/file_system/file_system_manager.hpp b/src/buildtool/file_system/file_system_manager.hpp index 0e00537a..6cf8f256 100644 --- a/src/buildtool/file_system/file_system_manager.hpp +++ b/src/buildtool/file_system/file_system_manager.hpp @@ -246,11 +246,11 @@ class FileSystemManager { } template <ObjectType kType, bool kSetEpochTime = false> - requires(IsFileObject(kType)) - [[nodiscard]] static auto CreateFileHardlinkAs( - std::filesystem::path const& file_path, - std::filesystem::path const& link_path, - LogLevel log_failure_at = LogLevel::Error) noexcept -> bool { + requires(IsFileObject(kType)) + [[nodiscard]] static auto CreateFileHardlinkAs( + std::filesystem::path const& file_path, + std::filesystem::path const& link_path, + LogLevel log_failure_at = LogLevel::Error) noexcept -> bool { // Set permissions first (permissions are a property of the file) so // that the created link has the correct permissions as soon as the link // creation is finished. @@ -354,7 +354,8 @@ class FileSystemManager { template <ObjectType kType, bool kSetEpochTime = false, bool kSetWritable = false> - requires(IsFileObject(kType)) [[nodiscard]] static auto CopyFileAs( + requires(IsFileObject(kType)) + [[nodiscard]] static auto CopyFileAs( std::filesystem::path const& src, std::filesystem::path const& dst, bool fd_less = false, @@ -929,10 +930,10 @@ class FileSystemManager { template <ObjectType kType, bool kSetEpochTime = false, bool kSetWritable = false> - requires(IsFileObject(kType)) - [[nodiscard]] static auto WriteFileAs(std::string const& content, - std::filesystem::path const& file, - bool fd_less = false) noexcept + requires(IsFileObject(kType)) + [[nodiscard]] static auto WriteFileAs(std::string const& content, + std::filesystem::path const& file, + bool fd_less = false) noexcept -> bool { return WriteFile(content, file, fd_less) and SetFilePermissions<kSetWritable>(file, @@ -1336,6 +1337,6 @@ class FileSystemManager { } }; // class LowLevel -}; // class FileSystemManager +}; // class FileSystemManager #endif // INCLUDED_SRC_BUILDTOOL_FILE_SYSTEM_FILE_SYSTEM_MANAGER_HPP |