[libc-commits] [libc] [libc] Set default visibility to 'hidden' and make entrypoints default (PR #97123)

via libc-commits libc-commits at lists.llvm.org
Wed Jul 3 12:32:02 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 594bc520a8a14617bdfc158f4c78fa70567dab19 c21c180c3f627a85b1b4bfcccda7d15b55387b75 -- libc/src/__support/File/linux/stderr.cpp libc/src/__support/File/linux/stdin.cpp libc/src/__support/File/linux/stdout.cpp libc/src/__support/common.h libc/src/errno/libc_errno.cpp libc/src/stdio/generic/stderr.cpp libc/src/stdio/generic/stdin.cpp libc/src/stdio/generic/stdout.cpp libc/src/stdio/gpu/stderr.cpp libc/src/stdio/gpu/stdin.cpp libc/src/stdio/gpu/stdout.cpp libc/src/stdlib/atexit.cpp libc/src/stdlib/atexit.h libc/src/stdlib/exit.cpp libc/src/unistd/environ.cpp libc/src/unistd/getopt.cpp libc/test/IntegrationTest/test.cpp libc/test/UnitTest/HermeticTestUtils.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/stdlib/exit.cpp b/libc/src/stdlib/exit.cpp
index e9d88b4a20..e291c8781d 100644
--- a/libc/src/stdlib/exit.cpp
+++ b/libc/src/stdlib/exit.cpp
@@ -7,9 +7,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "src/stdlib/exit.h"
-#include "src/stdlib/atexit.h"
 #include "src/__support/OSUtil/exit.h"
 #include "src/__support/common.h"
+#include "src/stdlib/atexit.h"
 
 namespace LIBC_NAMESPACE {
 

``````````

</details>


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


More information about the libc-commits mailing list