[libc-commits] [libc] [libc] Enable bare-metal hermetic tests on Arm (PR #207361)
via libc-commits
libc-commits at lists.llvm.org
Tue Jul 7 09:04:09 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 -- libc/test/UnitTest/ArmBaremetalTestUtils.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/libc/test/UnitTest/ArmBaremetalTestUtils.cpp b/libc/test/UnitTest/ArmBaremetalTestUtils.cpp
index d7dce92a1..720df0b23 100644
--- a/libc/test/UnitTest/ArmBaremetalTestUtils.cpp
+++ b/libc/test/UnitTest/ArmBaremetalTestUtils.cpp
@@ -64,9 +64,9 @@ struct __llvm_libc_stdio_cookie __llvm_libc_stderr_cookie;
static void stdio_open(struct __llvm_libc_stdio_cookie *cookie, size_t mode) {
const char std_stream_name[] = ":tt";
size_t args[] = {
- reinterpret_cast<size_t>(std_stream_name),
- mode,
- sizeof(std_stream_name) - 1UL,
+ reinterpret_cast<size_t>(std_stream_name),
+ mode,
+ sizeof(std_stream_name) - 1UL,
};
cookie->handle = semihosting_call(SYS_OPEN, args);
}
@@ -87,9 +87,9 @@ void __llvm_libc_exit(int status) {
ssize_t __llvm_libc_stdio_write(struct __llvm_libc_stdio_cookie *cookie,
const char *buf, size_t size) {
size_t args[] = {
- static_cast<size_t>(cookie->handle),
- reinterpret_cast<size_t>(buf),
- size,
+ static_cast<size_t>(cookie->handle),
+ reinterpret_cast<size_t>(buf),
+ size,
};
ssize_t retval = semihosting_call(SYS_WRITE, args);
if (retval >= 0)
``````````
</details>
https://github.com/llvm/llvm-project/pull/207361
More information about the libc-commits
mailing list