[libc-commits] [libc] [llvm] [libc][NFC] Fix missing LIBC_INLINE + style (PR #73659)
Clement Courbet via libc-commits
libc-commits at lists.llvm.org
Tue Nov 28 07:40:21 PST 2023
================
@@ -9,11 +9,13 @@
#define LLVM_LIBC_SRC___SUPPORT_CPP_UTILITY_MOVE_H
#include "src/__support/CPP/type_traits/remove_reference.h"
+#include "src/__support/macros/attributes.h" // LIBC_INLINE
namespace LIBC_NAMESPACE::cpp {
// move
-template <class T> constexpr cpp::remove_reference_t<T> &&move(T &&t) {
+template <class T>
+LIBC_INLINE constexpr cpp::remove_reference_t<T> &&move(T &&t) {
----------------
legrosbuffle wrote:
same: templates are implicitly inline
https://github.com/llvm/llvm-project/pull/73659
More information about the libc-commits
mailing list