[libcxx-commits] [libcxx] [libc++] Avoid constructing additional objects when using map::at (PR #157866)
via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 18 07:13:16 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 origin/main HEAD --extensions ,h,cpp -- libcxx/include/__type_traits/is_generic_transparent_comparator.h libcxx/include/__type_traits/is_transparently_comparable.h libcxx/include/__type_traits/make_transparent.h libcxx/include/__algorithm/comp.h libcxx/include/__functional/operations.h libcxx/include/__functional/ranges_operations.h libcxx/include/__tree libcxx/include/map libcxx/include/string libcxx/test/benchmarks/containers/associative/map.bench.cpp
``````````
: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/include/__type_traits/is_generic_transparent_comparator.h b/libcxx/include/__type_traits/is_generic_transparent_comparator.h
index cf2024b57..adb495962 100644
--- a/libcxx/include/__type_traits/is_generic_transparent_comparator.h
+++ b/libcxx/include/__type_traits/is_generic_transparent_comparator.h
@@ -20,7 +20,6 @@ _LIBCPP_BEGIN_NAMESPACE_STD
template <class _Comparator>
inline const bool __is_generic_transparent_comparator_v = false;
-
_LIBCPP_END_NAMESPACE_STD
#endif // _LIBCPP___TYPE_TRAITS_IS_GENERIC_TRANSPARENT_COMPARATOR_H
``````````
</details>
https://github.com/llvm/llvm-project/pull/157866
More information about the libcxx-commits
mailing list