[libc-commits] [libc] [libc]: Implement strfrom* functions and utils (PR #85438)

via libc-commits libc-commits at lists.llvm.org
Fri Mar 15 10:43:14 PDT 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 b43965adacfafc4dc6b5ec17b4bea839372b7626 d4046e89f15478b942cd5b78c863b7eff5aaed7c -- libc/src/stdlib/str_from_util.h libc/src/stdlib/strfromf.cpp libc/src/stdlib/strfromf.h libc/test/src/stdlib/strfromf_test.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/stdlib/str_from_util.h b/libc/src/stdlib/str_from_util.h
index 33597d1ea7..96fc42f037 100644
--- a/libc/src/stdlib/str_from_util.h
+++ b/libc/src/stdlib/str_from_util.h
@@ -26,7 +26,9 @@
 
 namespace LIBC_NAMESPACE::internal {
 
-template <typename T> struct type_of { using type = T; };
+template <typename T> struct type_of {
+  using type = T;
+};
 
 template <> struct type_of<float> {
   using type = fputil::FPBits<float>::StorageType;
diff --git a/libc/src/stdlib/strfromf.h b/libc/src/stdlib/strfromf.h
index caaeb072da..87ec9257e5 100644
--- a/libc/src/stdlib/strfromf.h
+++ b/libc/src/stdlib/strfromf.h
@@ -1,4 +1,5 @@
-//===-- Implementation header for strfromf ------------------------*- C++ -*-===//
+//===-- Implementation header for strfromf ------------------------*- C++
+//-*-===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.

``````````

</details>


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


More information about the libc-commits mailing list