[libc-commits] [libc] [llvm] [libc][NFC] Fix missing LIBC_INLINE + style (PR #73659)

via libc-commits libc-commits at lists.llvm.org
Tue Nov 28 07:37:36 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 a3ae7b660acfac3a812fe366b9210a24bd383963 95a5c4b461a23a92c24afd3ab4444c20d8b8fdf2 -- libc/src/__support/CPP/limits.h libc/src/__support/CPP/type_traits/invoke.h libc/src/__support/CPP/utility/in_place.h libc/src/__support/CPP/utility/move.h libc/src/__support/FPUtil/FPBits.h libc/src/__support/FPUtil/FloatProperties.h libc/src/__support/FPUtil/x86_64/LongDoubleBits.h libc/src/__support/UInt.h libc/src/__support/integer_operations.h libc/src/string/memmem.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/__support/CPP/type_traits/invoke.h b/libc/src/__support/CPP/type_traits/invoke.h
index ea74fb7c36..94351d849b 100644
--- a/libc/src/__support/CPP/type_traits/invoke.h
+++ b/libc/src/__support/CPP/type_traits/invoke.h
@@ -38,7 +38,8 @@ struct invoke_dispatcher<FunctionReturnType Class::*> {
   using FunctionPtrType = FunctionReturnType Class::*;
 
   template <class T, class... Args, class DecayT = cpp::decay_t<T>>
-  LIBC_INLINE static decltype(auto) call(FunctionPtrType fun, T &&t1, Args &&...args) {
+  LIBC_INLINE static decltype(auto) call(FunctionPtrType fun, T &&t1,
+                                         Args &&...args) {
     if constexpr (cpp::is_base_of_v<Class, DecayT>) {
       // T is a (possibly cv ref) type.
       return (cpp::forward<T>(t1).*fun)(cpp::forward<Args>(args)...);

``````````

</details>


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


More information about the libc-commits mailing list