[libc-commits] [libc] [libc] Add `vsscanf` function (PR #97529)

via libc-commits libc-commits at lists.llvm.org
Wed Jul 3 00:00:23 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 3402a1a4d2d4c7ead69156c3d741fc9ae9c4d399 48432beccb619caa3fe6c2fc9a0d6142262554b4 -- libc/src/stdio/vsscanf.cpp libc/src/stdio/vsscanf.h
``````````

</details>

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

``````````diff
diff --git a/libc/src/stdio/vsscanf.cpp b/libc/src/stdio/vsscanf.cpp
index b5c9173387..ff603a7c0d 100644
--- a/libc/src/stdio/vsscanf.cpp
+++ b/libc/src/stdio/vsscanf.cpp
@@ -14,14 +14,11 @@
 
 namespace LIBC_NAMESPACE {
 
-LLVM_LIBC_FUNCTION(int, vsscanf,
-                   (const char *, const char *,
-                    va_list vlist)) {
+LLVM_LIBC_FUNCTION(int, vsscanf, (const char *, const char *, va_list vlist)) {
   internal::ArgList args(vlist); // This holder class allows for easier copying
                                  // and pointer semantics, as well as handling
                                  // destruction automatically.
 
-  
   return -1;
 }
 
diff --git a/libc/src/stdio/vsscanf.h b/libc/src/stdio/vsscanf.h
index 5f32f7ed35..992c44d3d9 100644
--- a/libc/src/stdio/vsscanf.h
+++ b/libc/src/stdio/vsscanf.h
@@ -13,8 +13,7 @@
 
 namespace LIBC_NAMESPACE {
 
-int vsscanf(const char * s, const char * format,
-             va_list vlist);
+int vsscanf(const char *s, const char *format, va_list vlist);
 
 } // namespace LIBC_NAMESPACE
 

``````````

</details>


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


More information about the libc-commits mailing list