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,c -- 
clang/test/Driver/print-enabled-extensions/aarch64-c2-pro.c 
clang/test/Driver/print-enabled-extensions/aarch64-c2-ultra.c 
clang/test/Driver/aarch64-mcpu.c clang/test/Driver/aarch64-mtune.c 
clang/test/Misc/target-invalid-cpu-note/aarch64.c 
llvm/lib/Target/AArch64/AArch64Subtarget.cpp llvm/lib/TargetParser/Host.cpp 
llvm/unittests/TargetParser/Host.cpp 
llvm/unittests/TargetParser/TargetParserTest.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/llvm/unittests/TargetParser/Host.cpp 
b/llvm/unittests/TargetParser/Host.cpp
index 05bc220cf..4853f01bb 100644
--- a/llvm/unittests/TargetParser/Host.cpp
+++ b/llvm/unittests/TargetParser/Host.cpp
@@ -163,8 +163,8 @@ TEST(getLinuxHostCPUName, AArch64) {
   EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x41\n"
                                               "CPU part        : 0xd96"),
             "c2-ultra");
-  EXPECT_EQ(sys::detail::getHostCPUNameForARM(
-                0x410fd961, ArrayRef<uint64_t>{0x410fd961}),
+  EXPECT_EQ(sys::detail::getHostCPUNameForARM(0x410fd961,
+                                              ArrayRef<uint64_t>{0x410fd961}),
             "c2-ultra");
   EXPECT_EQ(sys::detail::getHostCPUNameForARM("CPU implementer : 0x51\n"
                                               "CPU part        : 0xc00"),

``````````

</details>


https://github.com/llvm/llvm-project/pull/229055
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to