[libc-commits] [libc] [libc] `__stack_chk_fail` baremetal dependencies (PR #76412)

via libc-commits libc-commits at lists.llvm.org
Tue Dec 26 14:23:49 PST 2023


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 7962bd5719b7a1acc595bbacdb479addd81703bc e15802b7ae74c798c1bc654462d3b606cb934438 -- libc/src/__support/OSUtil/baremetal/io.h libc/src/__support/OSUtil/baremetal/quick_exit.h libc/src/__support/OSUtil/io.h libc/src/__support/OSUtil/quick_exit.h
``````````

</details>

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

``````````diff
diff --git a/libc/src/__support/OSUtil/baremetal/io.h b/libc/src/__support/OSUtil/baremetal/io.h
index 93de33357c..db1fe87bb1 100644
--- a/libc/src/__support/OSUtil/baremetal/io.h
+++ b/libc/src/__support/OSUtil/baremetal/io.h
@@ -14,7 +14,7 @@
 
 namespace LIBC_NAMESPACE {
 
-extern "C" void __libc_log_write(const char* msg, size_t len);
+extern "C" void __libc_log_write(const char *msg, size_t len);
 
 void write_to_stderr(cpp::string_view msg) {
   __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 ee0e090b97..e87840cc67 100644
--- a/libc/src/__support/OSUtil/baremetal/quick_exit.h
+++ b/libc/src/__support/OSUtil/baremetal/quick_exit.h
@@ -13,9 +13,7 @@ namespace LIBC_NAMESPACE {
 
 extern "C" void __libc_quick_exit(int status);
 
-void quick_exit(int status) {
-  __libc_quick_exit(status);
-}
+void quick_exit(int status) { __libc_quick_exit(status); }
 
 } // namespace LIBC_NAMESPACE
 

``````````

</details>


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


More information about the libc-commits mailing list