summaryrefslogtreecommitdiff
path: root/src/utils/cpp/hash_combine.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/utils/cpp/hash_combine.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/utils/cpp/hash_combine.hpp')
-rw-r--r--src/utils/cpp/hash_combine.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/cpp/hash_combine.hpp b/src/utils/cpp/hash_combine.hpp
index a09c9985..78fed417 100644
--- a/src/utils/cpp/hash_combine.hpp
+++ b/src/utils/cpp/hash_combine.hpp
@@ -22,8 +22,8 @@
// Taken from Boost, as hash_combine did not yet make it to STL.
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0814r0.pdf
template <class T>
-inline auto hash_combine(gsl::not_null<std::size_t*> const& seed, T const& v)
- -> void {
+inline auto hash_combine(gsl::not_null<std::size_t*> const& seed,
+ T const& v) -> void {
*seed ^=
std::hash<T>{}(v) + 0x9e3779b9 + (*seed << 6) + (*seed >> 2); // NOLINT
}