[llvm] [SandboxIR] Simplify matchers in ShuffleVectorInst unit test (NFC) (PR #105596)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 21 16:26:29 PDT 2024


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 c557d8520413476221a4f3bf2b7b3fed17681691 c7ab910ab7099416462a64725fc46a11f7b32904 --extensions cpp -- llvm/unittests/SandboxIR/SandboxIRTest.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/unittests/SandboxIR/SandboxIRTest.cpp b/llvm/unittests/SandboxIR/SandboxIRTest.cpp
index 93462def39..b6981027b4 100644
--- a/llvm/unittests/SandboxIR/SandboxIRTest.cpp
+++ b/llvm/unittests/SandboxIR/SandboxIRTest.cpp
@@ -836,7 +836,7 @@ define void @foo(<2 x i8> %v1, <2 x i8> %v2) {
     Result.clear();
     sandboxir::ShuffleVectorInst::getShuffleMask(
         SVI->getShuffleMaskForBitcode(), Result);
-    EXPECT_THAT(Result, testing::ElementsAre(0,2));
+    EXPECT_THAT(Result, testing::ElementsAre(0, 2));
   }
 
   // convertShuffleMaskForBitcode

``````````

</details>


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


More information about the llvm-commits mailing list