[libcxx-commits] [libcxx] [libc++] Define an internal API for std::invoke and friends (PR #116637)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Nov 18 07:11:44 PST 2024
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 811186764d1add4d83972db3ad0d2e7c96bb15a7 025f937646f190978325c58967ccb02828a78bd2 --extensions ,h -- libcxx/include/__algorithm/make_projected.h libcxx/include/__functional/bind.h libcxx/include/__functional/function.h libcxx/include/__functional/hash.h libcxx/include/__functional/mem_fn.h libcxx/include/__functional/reference_wrapper.h libcxx/include/__hash_table libcxx/include/__tree libcxx/include/__type_traits/invoke.h libcxx/include/__type_traits/result_of.h libcxx/include/future libcxx/include/unordered_map libcxx/include/unordered_set
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libcxx/include/__functional/mem_fn.h b/libcxx/include/__functional/mem_fn.h
index 83390352ed..690393988c 100644
--- a/libcxx/include/__functional/mem_fn.h
+++ b/libcxx/include/__functional/mem_fn.h
@@ -43,7 +43,7 @@ public:
};
template <class _Rp, class _Tp>
-inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __mem_fn<_Rp _Tp::*> mem_fn(_Rp _Tp::* __pm) _NOEXCEPT {
+inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX20 __mem_fn<_Rp _Tp::*> mem_fn(_Rp _Tp::*__pm) _NOEXCEPT {
return __mem_fn<_Rp _Tp::*>(__pm);
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/116637
More information about the libcxx-commits
mailing list