[llvm] [libsycl][Unit][NFC] Fix another unused capture warning (PR #217941)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 21 11:25:43 PDT 2026


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 -- libsycl/unittests/mock/helpers.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/libsycl/unittests/mock/helpers.cpp b/libsycl/unittests/mock/helpers.cpp
index 0f139c722..5a351521d 100644
--- a/libsycl/unittests/mock/helpers.cpp
+++ b/libsycl/unittests/mock/helpers.cpp
@@ -310,8 +310,8 @@ void mock::MockLiboffload::initDefault() {
       });
   ON_CALL(*this, olMemPrefetch)
       .WillByDefault([](ol_queue_handle_t Queue, size_t Count,
-                            const void **Mems, const size_t *Sizes,
-                            ol_mem_migration_flags_t Flags) -> ol_result_t {
+                        const void **Mems, const size_t *Sizes,
+                        ol_mem_migration_flags_t Flags) -> ol_result_t {
         EXPECT_NE(Queue, nullptr);
         EXPECT_EQ(Count, 1);
         EXPECT_NE(Mems, nullptr);

``````````

</details>


https://github.com/llvm/llvm-project/pull/217941


More information about the llvm-commits mailing list