[libcxx-commits] [libcxx] [libcxx] Implement `std::constant_wrapper` (PR #191695)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Apr 13 06:21:07 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 -- libcxx/include/__utility/constant_wrapper.h libcxx/test/std/utilities/const.wrap.class/adl.pass.cpp libcxx/test/std/utilities/const.wrap.class/assign.pass.cpp libcxx/test/std/utilities/const.wrap.class/binary_ops.pass.cpp libcxx/test/std/utilities/const.wrap.class/call.pass.cpp libcxx/test/std/utilities/const.wrap.class/comma.pass.cpp libcxx/test/std/utilities/const.wrap.class/comp.pass.cpp libcxx/test/std/utilities/const.wrap.class/convert.pass.cpp libcxx/test/std/utilities/const.wrap.class/ctad.compile.pass.cpp libcxx/test/std/utilities/const.wrap.class/cw.pass.cpp libcxx/test/std/utilities/const.wrap.class/cw_fixed.array.ctor.pass.cpp libcxx/test/std/utilities/const.wrap.class/cw_fixed.ctor.pass.cpp libcxx/test/std/utilities/const.wrap.class/general.pass.cpp libcxx/test/std/utilities/const.wrap.class/helpers.h libcxx/test/std/utilities/const.wrap.class/mem_ptr.pass.cpp libcxx/test/std/utilities/const.wrap.class/pseudo_mutators.pass.cpp libcxx/test/std/utilities/const.wrap.class/subscript.pass.cpp libcxx/test/std/utilities/const.wrap.class/types.compile.pass.cpp libcxx/test/std/utilities/const.wrap.class/unary_ops.pass.cpp libcxx/include/span libcxx/include/utility libcxx/include/version libcxx/test/std/containers/views/views.span/span.cons/deduct.pass.cpp libcxx/test/std/language.support/support.limits/support.limits.general/utility.version.compile.pass.cpp libcxx/test/std/language.support/support.limits/support.limits.general/version.version.compile.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/utilities/const.wrap.class/helpers.h b/libcxx/test/std/utilities/const.wrap.class/helpers.h
index f94d60473..a1f15bbc4 100644
--- a/libcxx/test/std/utilities/const.wrap.class/helpers.h
+++ b/libcxx/test/std/utilities/const.wrap.class/helpers.h
@@ -9,7 +9,6 @@
 #ifndef TEST_STD_UTILITIES_CONST_WRAP_CLASS_HELPERS_H
 #define TEST_STD_UTILITIES_CONST_WRAP_CLASS_HELPERS_H
 
-
 struct NonStructural {
   constexpr NonStructural(int i) : value(i) {}
 
@@ -19,5 +18,4 @@ private:
   int value;
 };
 
-
 #endif // TEST_STD_UTILITIES_CONST_WRAP_CLASS_HELPERS_H

``````````

</details>


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


More information about the libcxx-commits mailing list