From bc39ecc0385dd7e0cb9e1df84628e4c6dde34ab5 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Tue, 27 Aug 2024 11:14:38 +0200 Subject: Reformat code to comply with clang-format 18 ... while keeping our .clang-format file. --- src/buildtool/file_system/file_system_manager.hpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'src/buildtool/file_system/file_system_manager.hpp') 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 - 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 - 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 - 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(file, @@ -1336,6 +1337,6 @@ class FileSystemManager { } }; // class LowLevel -}; // class FileSystemManager +}; // class FileSystemManager #endif // INCLUDED_SRC_BUILDTOOL_FILE_SYSTEM_FILE_SYSTEM_MANAGER_HPP -- cgit v1.2.3