summaryrefslogtreecommitdiff
path: root/src/buildtool/file_system/git_cas.hpp
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-27 11:14:38 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-27 11:40:40 +0200
commitbc39ecc0385dd7e0cb9e1df84628e4c6dde34ab5 (patch)
tree4556b3f5f5898ef56316fc1612a04402b79903ef /src/buildtool/file_system/git_cas.hpp
parent340f3478dc2bffe1a75496e5c120e88274fee698 (diff)
downloadjustbuild-bc39ecc0385dd7e0cb9e1df84628e4c6dde34ab5.tar.gz
Reformat code to comply with clang-format 18
... while keeping our .clang-format file.
Diffstat (limited to 'src/buildtool/file_system/git_cas.hpp')
-rw-r--r--src/buildtool/file_system/git_cas.hpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/buildtool/file_system/git_cas.hpp b/src/buildtool/file_system/git_cas.hpp
index f01d5617..c1223411 100644
--- a/src/buildtool/file_system/git_cas.hpp
+++ b/src/buildtool/file_system/git_cas.hpp
@@ -48,9 +48,8 @@ class GitCAS {
/// \brief Read object from CAS.
/// \param id The object id.
/// \param is_hex_id Specify whether `id` is hex string or raw.
- [[nodiscard]] auto ReadObject(std::string const& id,
- bool is_hex_id = false) const noexcept
- -> std::optional<std::string>;
+ [[nodiscard]] auto ReadObject(std::string const& id, bool is_hex_id = false)
+ const noexcept -> std::optional<std::string>;
/// \brief Read object header from CAS.
/// \param id The object id.
@@ -59,9 +58,8 @@ class GitCAS {
// Note that most backends do not support reading only the header of an
// object, so the whole object will be read and then the header will be
// returned.
- [[nodiscard]] auto ReadHeader(std::string const& id,
- bool is_hex_id = false) const noexcept
- -> std::optional<std::pair<std::size_t, ObjectType>>;
+ [[nodiscard]] auto ReadHeader(std::string const& id, bool is_hex_id = false)
+ const noexcept -> std::optional<std::pair<std::size_t, ObjectType>>;
private:
std::unique_ptr<git_odb, decltype(&odb_closer)> odb_{nullptr, odb_closer};