[llvm] [CAS] Add OnDiskGraphDB and OnDiskKeyValueDB (PR #114102)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 7 12:52:01 PDT 2025
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- llvm/include/llvm/CAS/OnDiskGraphDB.h llvm/include/llvm/CAS/OnDiskKeyValueDB.h llvm/lib/CAS/OnDiskGraphDB.cpp llvm/lib/CAS/OnDiskKeyValueDB.cpp llvm/unittests/CAS/OnDiskCommonUtils.h llvm/unittests/CAS/OnDiskGraphDBTest.cpp llvm/unittests/CAS/OnDiskKeyValueDBTest.cpp llvm/lib/CAS/OnDiskCommon.cpp llvm/lib/CAS/OnDiskCommon.h
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/CAS/OnDiskKeyValueDB.h b/llvm/include/llvm/CAS/OnDiskKeyValueDB.h
index ca08eaf0e..d110fabc7 100644
--- a/llvm/include/llvm/CAS/OnDiskKeyValueDB.h
+++ b/llvm/include/llvm/CAS/OnDiskKeyValueDB.h
@@ -35,9 +35,7 @@ public:
Expected<std::optional<ArrayRef<char>>> get(ArrayRef<uint8_t> Key);
/// \returns Total size of stored data.
- size_t getStorageSize() const {
- return Cache.size();
- }
+ size_t getStorageSize() const { return Cache.size(); }
/// \returns The precentage of space utilization of hard space limits.
///
``````````
</details>
https://github.com/llvm/llvm-project/pull/114102
More information about the llvm-commits
mailing list