[libcxx-commits] [libcxx] [openmp] [libc++] basic_ios<wchar_t> cannot store fill character WCHAR_MAX (PR #89305)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 12 07:34:48 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 3141c11fe8f5ebd8a8645b7977f2f1055a33bb33 9ea946ee9e42305f5fbde72d19e08e31cc4f9467 --extensions ,cpp,h -- libcxx/test/std/input.output/iostream.format/std.manip/setfill_wchar_max.pass.cpp libcxx/include/__configuration/abi.h libcxx/include/ios
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/ios b/libcxx/include/ios
index 544b2195a8..6c786892e1 100644
--- a/libcxx/include/ios
+++ b/libcxx/include/ios
@@ -526,7 +526,11 @@ template <class _Traits>
 // definition of the '__fill_' and '_set_' pair in basic_ios on AIX & z/OS.
 struct _LIBCPP_PACKED _FillHelper {
   _LIBCPP_HIDE_FROM_ABI void __init() { __set_ = false; }
-  _LIBCPP_HIDE_FROM_ABI _FillHelper& operator=(typename _Traits::int_type __x) { __set_ = true; __fill_val_ = __x; return *this; }
+  _LIBCPP_HIDE_FROM_ABI _FillHelper& operator=(typename _Traits::int_type __x) {
+    __set_      = true;
+    __fill_val_ = __x;
+    return *this;
+  }
   _LIBCPP_HIDE_FROM_ABI bool __is_set() const { return __set_; }
   _LIBCPP_HIDE_FROM_ABI typename _Traits::int_type __get() const { return __fill_val_; }
 
@@ -538,7 +542,10 @@ private:
 template <class _Traits>
 struct _LIBCPP_PACKED _SentinelValueFill {
   _LIBCPP_HIDE_FROM_ABI void __init() { __fill_val_ = _Traits::eof(); }
-  _LIBCPP_HIDE_FROM_ABI _SentinelValueFill& operator=(typename _Traits::int_type __x) { __fill_val_ = __x; return *this; }
+  _LIBCPP_HIDE_FROM_ABI _SentinelValueFill& operator=(typename _Traits::int_type __x) {
+    __fill_val_ = __x;
+    return *this;
+  }
   _LIBCPP_HIDE_FROM_ABI bool __is_set() const { return __fill_val_ != _Traits::eof(); }
   _LIBCPP_HIDE_FROM_ABI typename _Traits::int_type __get() const { return __fill_val_; }
 

``````````

</details>


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


More information about the libcxx-commits mailing list