[libc-commits] [libc] Add basic char*_t support for libc (PR #90360)

via libc-commits libc-commits at lists.llvm.org
Sat Apr 27 14:25:34 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 38a2051c5222b3e5245043a3056b3a1e89f69b22 68236e5680a816a70f213f972807c99ba4796b43 -- libc/include/llvm-libc-types/char16_t.h libc/include/llvm-libc-types/char32_t.h libc/include/llvm-libc-types/char8_t.h
``````````

</details>

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

``````````diff
diff --git a/libc/include/llvm-libc-types/char8_t.h b/libc/include/llvm-libc-types/char8_t.h
index 12972161c7..5240cdb700 100644
--- a/libc/include/llvm-libc-types/char8_t.h
+++ b/libc/include/llvm-libc-types/char8_t.h
@@ -9,7 +9,8 @@
 #ifndef LLVM_LIBC_TYPES_CHAR8_T_H
 #define LLVM_LIBC_TYPES_CHAR8_T_H
 
-#if !defined(__cplusplus) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 202311L
+#if !defined(__cplusplus) && defined(__STDC_VERSION__) &&                      \
+    __STDC_VERSION__ >= 202311L
 typedef unsigned char char8_t;
 #endif
 

``````````

</details>


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


More information about the libc-commits mailing list