[libc-commits] [libc] [libc] Build with -Wdeprecated, fix some warnings (PR #125373)

via libc-commits libc-commits at lists.llvm.org
Sat Feb 1 17:37:30 PST 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 312055d1da169f043e65b35fcd62d6d685700114 e299436c490f00b2c252290f9b5ea08c83e3997d --extensions cpp,h -- libc/src/__support/CPP/span.h libc/test/src/setjmp/setjmp_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/__support/CPP/span.h b/libc/src/__support/CPP/span.h
index e5073bd3c9..a524e228c1 100644
--- a/libc/src/__support/CPP/span.h
+++ b/libc/src/__support/CPP/span.h
@@ -52,7 +52,7 @@ public:
 
   LIBC_INLINE constexpr span() : span_data(nullptr), span_size(0) {}
 
-  LIBC_INLINE constexpr span(const span&) = default;
+  LIBC_INLINE constexpr span(const span &) = default;
 
   LIBC_INLINE constexpr span(pointer first, size_type count)
       : span_data(first), span_size(count) {}

``````````

</details>


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


More information about the libc-commits mailing list