diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8b8d510..e2fef62 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/pre-commit/mirrors-clang-format - rev: b111689e7b5cba60be3c62d5db2bd1357f4d36ca + rev: 6d365699efc33b1b432eab5b4ae331a19e1857de # frozen: v18.1.2 hooks: - id: clang-format exclude: ".*third_party/.*" - repo: https://github.com/cheshirekow/cmake-format-precommit - rev: e2c2116d86a80e72e7146a06e68b7c228afc6319 + rev: e2c2116d86a80e72e7146a06e68b7c228afc6319 # frozen: v0.6.13 hooks: - id: cmake-format - repo: local diff --git a/ConflictSet.cpp b/ConflictSet.cpp index cae6fa1..fd43fdf 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -2614,7 +2614,7 @@ int64_t ConflictSet::getBytes() const { return impl->totalBytes; } ConflictSet::ConflictSet(int64_t oldestVersion) : impl((mallocBytesDelta = 0, - new (safe_malloc(sizeof(Impl))) Impl{oldestVersion})) { + new(safe_malloc(sizeof(Impl))) Impl{oldestVersion})) { impl->totalBytes += mallocBytesDelta; } diff --git a/HashTable.cpp b/HashTable.cpp index 8f44f3e..fc6f434 100644 --- a/HashTable.cpp +++ b/HashTable.cpp @@ -99,7 +99,7 @@ void ConflictSet::setOldestVersion(int64_t oldestVersion) { int64_t ConflictSet::getBytes() const { return -1; } ConflictSet::ConflictSet(int64_t oldestVersion) - : impl(new (safe_malloc(sizeof(Impl))) Impl{oldestVersion}) {} + : impl(new(safe_malloc(sizeof(Impl))) Impl{oldestVersion}) {} ConflictSet::~ConflictSet() { if (impl) { diff --git a/SkipList.cpp b/SkipList.cpp index 9ea5792..6b47a44 100644 --- a/SkipList.cpp +++ b/SkipList.cpp @@ -669,7 +669,7 @@ int64_t ConflictSet::getBytes() const { return impl->totalBytes; } ConflictSet::ConflictSet(int64_t oldestVersion) : impl((mallocBytesDelta = 0, - new (safe_malloc(sizeof(Impl))) Impl{oldestVersion})) { + new(safe_malloc(sizeof(Impl))) Impl{oldestVersion})) { impl->totalBytes += mallocBytesDelta; }