[libcxx-commits] [libcxx] [libc++] Use correct Apple platform naming (PR #176290)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 15 17:11:35 PST 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 -- libcxx/src/include/refstring.h libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.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/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.cpp
index d32d02c31..b4a44c97d 100644
--- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.permissions/permissions.pass.cpp
@@ -165,10 +165,10 @@ static void test_no_resolve_symlink_on_symlink()
     };
     for (auto const& TC : cases) {
 #if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(_AIX)
-        // On macOS symlink permissions are supported. We should get an empty
-        // error code and the expected permissions.
-        const auto expected_link_perms = TC.expected;
-        std::error_code expected_ec;
+      // On macOS symlink permissions are supported. We should get an empty
+      // error code and the expected permissions.
+      const auto expected_link_perms = TC.expected;
+      std::error_code expected_ec;
 #else
         // On linux symlink permissions are not supported. The error code should
         // be 'operation_not_supported' and the symlink permissions should be

``````````

</details>


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


More information about the libcxx-commits mailing list