[libcxx-commits] [libcxx] [libcxx][FreeBSD] Re-enable the sucessful test. (PR #186130)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 5 07:25:03 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 ,cpp -- libcxx/include/regex libcxx/test/std/re/re.traits/transform_primary.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/include/regex b/libcxx/include/regex
index a5ed959eb..6f5109a64 100644
--- a/libcxx/include/regex
+++ b/libcxx/include/regex
@@ -1163,7 +1163,7 @@ typename regex_traits<_CharT>::string_type
 regex_traits<_CharT>::__transform_primary(_ForwardIterator __f, _ForwardIterator __l, wchar_t) const {
   const string_type __s(__f, __l);
   string_type __d = __col_->transform(__s.data(), __s.data() + __s.size());
-#    if defined(__FreeBSD__)
+#      if defined(__FreeBSD__)
   // As in the char overload above, FreeBSD's wcsxfrm() separates the collation
   // levels with a weight (the value 1) that sorts below every real weight.
   // Keep only the primary level so primary-equivalent characters compare equal
@@ -1171,7 +1171,7 @@ regex_traits<_CharT>::__transform_primary(_ForwardIterator __f, _ForwardIterator
   typename string_type::size_type __sep = __d.find(static_cast<_CharT>(1));
   if (__sep != string_type::npos)
     __d.erase(__sep);
-#    else
+#      else
   switch (__d.size()) {
   case 1:
     break;
@@ -1182,7 +1182,7 @@ regex_traits<_CharT>::__transform_primary(_ForwardIterator __f, _ForwardIterator
     __d.clear();
     break;
   }
-#    endif
+#      endif
   return __d;
 }
 #    endif

``````````

</details>


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


More information about the libcxx-commits mailing list