[libc-commits] [libc] [libc][stdlib] Add unsetenv (PR #202422)
via libc-commits
libc-commits at lists.llvm.org
Tue Jun 23 07:50:21 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 h,cpp -- libc/src/stdlib/linux/unsetenv.cpp libc/src/stdlib/unsetenv.h libc/test/integration/src/stdlib/unsetenv_test.cpp libc/src/stdlib/environ_internal.cpp libc/src/stdlib/environ_internal.h --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/integration/src/stdlib/unsetenv_test.cpp b/libc/test/integration/src/stdlib/unsetenv_test.cpp
index 5b2193ba3..5880ed62a 100644
--- a/libc/test/integration/src/stdlib/unsetenv_test.cpp
+++ b/libc/test/integration/src/stdlib/unsetenv_test.cpp
@@ -11,10 +11,10 @@
///
//===----------------------------------------------------------------------===//
+#include "src/stdlib/environ_internal.h"
#include "src/stdlib/getenv.h"
#include "src/stdlib/setenv.h"
#include "src/stdlib/unsetenv.h"
-#include "src/stdlib/environ_internal.h"
#include "src/string/strcmp.h"
#include "src/unistd/environ.h"
``````````
</details>
https://github.com/llvm/llvm-project/pull/202422
More information about the libc-commits
mailing list