[libcxx-commits] [libcxx] [libcxx] Add LWG4135: The helper lambda of std::erase for list should specify return type as bool (PR #128358)

via libcxx-commits libcxx-commits at lists.llvm.org
Sat Feb 22 06:56:59 PST 2025


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 73ad78cc57e10b932bddaa9034237f59bb566e6b 6e3f41116a445fe122204d9971759eff6d4b2e0e --extensions ,cpp -- libcxx/test/libcxx/containers/sequences/forwardlist/bool-conversion.pass.cpp libcxx/test/libcxx/containers/sequences/list/list.modifiers/bool-conversion.pass.cpp libcxx/include/forward_list libcxx/include/list
``````````

</details>

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

``````````diff
diff --git a/libcxx/test/libcxx/containers/sequences/forwardlist/bool-conversion.pass.cpp b/libcxx/test/libcxx/containers/sequences/forwardlist/bool-conversion.pass.cpp
index 402ea1e2b1..7f85068468 100644
--- a/libcxx/test/libcxx/containers/sequences/forwardlist/bool-conversion.pass.cpp
+++ b/libcxx/test/libcxx/containers/sequences/forwardlist/bool-conversion.pass.cpp
@@ -10,7 +10,7 @@
 
 #include <forward_list>
 struct Bool {
-  Bool() = default;
+  Bool()            = default;
   Bool(const Bool&) = delete;
   operator bool() const { return true; }
 };
diff --git a/libcxx/test/libcxx/containers/sequences/list/list.modifiers/bool-conversion.pass.cpp b/libcxx/test/libcxx/containers/sequences/list/list.modifiers/bool-conversion.pass.cpp
index eb26e9e700..3a79677b6f 100644
--- a/libcxx/test/libcxx/containers/sequences/list/list.modifiers/bool-conversion.pass.cpp
+++ b/libcxx/test/libcxx/containers/sequences/list/list.modifiers/bool-conversion.pass.cpp
@@ -10,7 +10,7 @@
 
 #include <list>
 struct Bool {
-  Bool() = default;
+  Bool()            = default;
   Bool(const Bool&) = delete;
   operator bool() const { return true; }
 };

``````````

</details>


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


More information about the libcxx-commits mailing list