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 42a1660376e339add3abe8ee8d73073dc0b49432 71e52bbf7a1e3c6e29cc149089a0368942b40cb1 --extensions cpp -- llvm/tools/llvm-cas/llvm-cas.cpp `````````` </details> <details> <summary> View the diff from clang-format here. </summary> ``````````diff diff --git a/llvm/tools/llvm-cas/llvm-cas.cpp b/llvm/tools/llvm-cas/llvm-cas.cpp index 291c6faf9f..b3dd0bb1f3 100644 --- a/llvm/tools/llvm-cas/llvm-cas.cpp +++ b/llvm/tools/llvm-cas/llvm-cas.cpp @@ -133,13 +133,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) { `````````` </details> https://github.com/llvm/llvm-project/pull/114093 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits