[libc-commits] [libc] 214b434 - [NFC][libc] Fix formatting for baremetal OSUtils
Petr Hosek via libc-commits
libc-commits at lists.llvm.org
Tue Jan 2 21:11:26 PST 2024
Author: Petr Hosek
Date: 2024-01-03T05:11:05Z
New Revision: 214b434dc8e7b414f280e583943d267c857ce19a
URL: https://github.com/llvm/llvm-project/commit/214b434dc8e7b414f280e583943d267c857ce19a
DIFF: https://github.com/llvm/llvm-project/commit/214b434dc8e7b414f280e583943d267c857ce19a.diff
LOG: [NFC][libc] Fix formatting for baremetal OSUtils
This reformats the headers to address formatting issues.
Added:
Modified:
libc/src/__support/OSUtil/baremetal/io.h
libc/src/__support/OSUtil/baremetal/quick_exit.h
Removed:
################################################################################
diff --git a/libc/src/__support/OSUtil/baremetal/io.h b/libc/src/__support/OSUtil/baremetal/io.h
index 4eeef5586f74f4..a50c11d4aea123 100644
--- a/libc/src/__support/OSUtil/baremetal/io.h
+++ b/libc/src/__support/OSUtil/baremetal/io.h
@@ -14,7 +14,7 @@
namespace LIBC_NAMESPACE {
// This is intended to be provided by the vendor.
-extern "C" void __llvm_libc_log_write(const char* msg, size_t len);
+extern "C" void __llvm_libc_log_write(const char *msg, size_t len);
void write_to_stderr(cpp::string_view msg) {
__llvm_libc_log_write(msg.data(), msg.size());
diff --git a/libc/src/__support/OSUtil/baremetal/quick_exit.h b/libc/src/__support/OSUtil/baremetal/quick_exit.h
index cc530bc0f4e9d8..74f9142e21b81e 100644
--- a/libc/src/__support/OSUtil/baremetal/quick_exit.h
+++ b/libc/src/__support/OSUtil/baremetal/quick_exit.h
@@ -14,9 +14,7 @@ namespace LIBC_NAMESPACE {
// This is intended to be provided by the vendor.
extern "C" void __llvm_libc_quick_exit(int status);
-void quick_exit(int status) {
- __llvm_libc_quick_exit(status);
-}
+void quick_exit(int status) { __llvm_libc_quick_exit(status); }
} // namespace LIBC_NAMESPACE
More information about the libc-commits
mailing list