[libcxx-commits] [libcxx] [libc++] Optimize std::find if types are integral (PR #70345)

via libcxx-commits libcxx-commits at lists.llvm.org
Thu Dec 14 07:52:04 PST 2023


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 bf9125294da1f3cf03a88356e068725c6f88bea6 165bfd2a0ffa6600c65b9d7d477b5d7898da00a3 -- libcxx/include/__algorithm/find.h libcxx/test/std/algorithms/alg.nonmodifying/alg.find/find.pass.cpp
``````````

</details>

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

``````````diff
diff --git a/libcxx/include/__algorithm/find.h b/libcxx/include/__algorithm/find.h
index 220bae3f10..fa4f0b0d82 100644
--- a/libcxx/include/__algorithm/find.h
+++ b/libcxx/include/__algorithm/find.h
@@ -20,8 +20,8 @@
 #include <__fwd/bit_reference.h>
 #include <__string/constexpr_c_functions.h>
 #include <__type_traits/is_integral.h>
-#include <__type_traits/is_signed.h>
 #include <__type_traits/is_same.h>
+#include <__type_traits/is_signed.h>
 #include <limits>
 
 #ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS

``````````

</details>


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


More information about the libcxx-commits mailing list