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 cpp --
lldb/source/Utility/ZipFile.cpp
lldb/unittests/Host/common/ZipFileResolverTest.cpp --diff_from_common_commit
``````````
: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/lldb/unittests/Host/common/ZipFileResolverTest.cpp
b/lldb/unittests/Host/common/ZipFileResolverTest.cpp
index 8d54ab455..cc4b5245c 100644
--- a/lldb/unittests/Host/common/ZipFileResolverTest.cpp
+++ b/lldb/unittests/Host/common/ZipFileResolverTest.cpp
@@ -28,16 +28,17 @@ class ZipFileResolverTest : public ::testing::Test {
std::vector<ZipFileDesc> TestZipFiles() {
return {
- // Simple uncompressed zip file, making use of extra fields
- {"zip-test.zip", "lib/arm64-v8a/libzip-test.so", 4096, 3600},
+ // Simple uncompressed zip file, making use of extra fields
+ {"zip-test.zip", "lib/arm64-v8a/libzip-test.so", 4096, 3600},
- // Simple uncompressed zip file, where the shared library is the last
entry,
- // and the enrty has no extra field
- {"zip-test-no-extras.zip", "lib/arm64-v8a/libzip-test.so", 140, 3600},
+ // Simple uncompressed zip file, where the shared library is the last
+ // entry,
+ // and the enrty has no extra field
+ {"zip-test-no-extras.zip", "lib/arm64-v8a/libzip-test.so", 140, 3600},
};
}
-std::string TestZipPath(const ZipFileDesc& desc) {
+std::string TestZipPath(const ZipFileDesc &desc) {
FileSpec zip_spec(GetInputFilePath(desc.zip_name));
FileSystem::Instance().Resolve(zip_spec);
return zip_spec.GetPath();
``````````
</details>
https://github.com/llvm/llvm-project/pull/173966
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits