[llvm-branch-commits] [llvm] [CAS] Add llvm-cas tools to inspect on-disk LLVMCAS (PR #114104)
Steven Wu via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Nov 3 12:09:29 PST 2025
https://github.com/cachemeifyoucan updated https://github.com/llvm/llvm-project/pull/114104
>From 63c4928ed65fb2a83a4a25f3c098af7d931fc0af Mon Sep 17 00:00:00 2001
From: Steven Wu <stevenwu at apple.com>
Date: Mon, 3 Nov 2025 12:09:19 -0800
Subject: [PATCH] clang-format
Created using spr 1.3.7
---
llvm/tools/llvm-cas/llvm-cas.cpp | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/llvm/tools/llvm-cas/llvm-cas.cpp b/llvm/tools/llvm-cas/llvm-cas.cpp
index b1e4f606211b5..e59313eb808e8 100644
--- a/llvm/tools/llvm-cas/llvm-cas.cpp
+++ b/llvm/tools/llvm-cas/llvm-cas.cpp
@@ -175,13 +175,12 @@ int main(int Argc, char **Argv) {
return validateObject(*CAS, ID);
}
-static Expected<std::unique_ptr<MemoryBuffer>>
-openBuffer(StringRef DataPath) {
+static Expected<std::unique_ptr<MemoryBuffer>> openBuffer(StringRef DataPath) {
if (DataPath.empty())
return createStringError(inconvertibleErrorCode(), "--data missing");
- return errorOrToExpected(
- DataPath == "-" ? llvm::MemoryBuffer::getSTDIN()
- : llvm::MemoryBuffer::getFile(DataPath));
+ return errorOrToExpected(DataPath == "-"
+ ? llvm::MemoryBuffer::getSTDIN()
+ : llvm::MemoryBuffer::getFile(DataPath));
}
int dump(ObjectStore &CAS) {
@@ -311,7 +310,7 @@ int validateIfNeeded(StringRef Path, bool CheckHash, bool Force,
Exec = ExecStorage;
}
ValidationResult Result = ExitOnErr(validateOnDiskUnifiedCASDatabasesIfNeeded(
- Path, CheckHash, AllowRecovery, Force, Exec));
+ Path, CheckHash, AllowRecovery, Force, Exec));
switch (Result) {
case ValidationResult::Valid:
outs() << "validated successfully\n";
More information about the llvm-branch-commits
mailing list