Skip to content

Commit 63c4928

Browse files
clang-format
Created using spr 1.3.7
1 parent e7ad764 commit 63c4928

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

llvm/tools/llvm-cas/llvm-cas.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,12 @@ int main(int Argc, char **Argv) {
175175
return validateObject(*CAS, ID);
176176
}
177177

178-
static Expected<std::unique_ptr<MemoryBuffer>>
179-
openBuffer(StringRef DataPath) {
178+
static Expected<std::unique_ptr<MemoryBuffer>> openBuffer(StringRef DataPath) {
180179
if (DataPath.empty())
181180
return createStringError(inconvertibleErrorCode(), "--data missing");
182-
return errorOrToExpected(
183-
DataPath == "-" ? llvm::MemoryBuffer::getSTDIN()
184-
: llvm::MemoryBuffer::getFile(DataPath));
181+
return errorOrToExpected(DataPath == "-"
182+
? llvm::MemoryBuffer::getSTDIN()
183+
: llvm::MemoryBuffer::getFile(DataPath));
185184
}
186185

187186
int dump(ObjectStore &CAS) {
@@ -311,7 +310,7 @@ int validateIfNeeded(StringRef Path, bool CheckHash, bool Force,
311310
Exec = ExecStorage;
312311
}
313312
ValidationResult Result = ExitOnErr(validateOnDiskUnifiedCASDatabasesIfNeeded(
314-
Path, CheckHash, AllowRecovery, Force, Exec));
313+
Path, CheckHash, AllowRecovery, Force, Exec));
315314
switch (Result) {
316315
case ValidationResult::Valid:
317316
outs() << "validated successfully\n";

0 commit comments

Comments
 (0)