[libcxx-commits] [libcxx] [libc++] Optimize __tree::__find_equal (PR #155245)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Aug 25 06:52:31 PDT 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 HEAD~1 HEAD --extensions ,h -- libcxx/include/__utility/three_way_comparator.h libcxx/include/__tree libcxx/include/__type_traits/enable_if.h libcxx/include/map libcxx/include/string
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__utility/three_way_comparator.h b/libcxx/include/__utility/three_way_comparator.h
index aed6f85de..ff322495e 100644
--- a/libcxx/include/__utility/three_way_comparator.h
+++ b/libcxx/include/__utility/three_way_comparator.h
@@ -10,12 +10,12 @@
#define _LIBCPP___UTILITY_THREE_WAY_COMPARATOR_H
#include <__config>
+#include <__functional/operations.h>
#include <__type_traits/desugars_to.h>
#include <__type_traits/enable_if.h>
#include <__type_traits/is_arithmetic.h>
#include <__type_traits/remove_const_ref.h>
#include <__type_traits/void_t.h>
-#include <__functional/operations.h>
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
diff --git a/libcxx/include/string b/libcxx/include/string
index edfa80162..930d545b4 100644
--- a/libcxx/include/string
+++ b/libcxx/include/string
@@ -966,7 +966,7 @@ private:
std::__wrap_iter<const_pointer>(__get_pointer() + size()));
# else
return const_iterator(__p);
-# endif // _LIBCPP_ABI_BOUNDED_ITERATORS_IN_STRING
+# endif // _LIBCPP_ABI_BOUNDED_ITERATORS_IN_STRING
}
public:
``````````
</details>
https://github.com/llvm/llvm-project/pull/155245
More information about the libcxx-commits
mailing list