[libc-commits] [libc] [libc] fix -Wtype-limits in wctob (PR #74511)
via libc-commits
libc-commits at lists.llvm.org
Tue Dec 5 13:06:56 PST 2023
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 3c5b42acd3e2022da40f6e4b50f5035279b8b93a 0617a61e74faaedc04a3bc7c411e9fa6e8f8cfcd -- libc/src/__support/wctype_utils.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/libc/src/__support/wctype_utils.h b/libc/src/__support/wctype_utils.h
index 0641b70d80..4b211aab02 100644
--- a/libc/src/__support/wctype_utils.h
+++ b/libc/src/__support/wctype_utils.h
@@ -25,8 +25,7 @@ namespace internal {
// of a function call by inlining them.
// ------------------------------------------------------
-template<typename W = wint_t>
-LIBC_INLINE cpp::optional<int> wctob(wint_t c) {
+template <typename W = wint_t> LIBC_INLINE cpp::optional<int> wctob(wint_t c) {
// This needs to be translated to EOF at the callsite. This is to avoid
// including stdio.h in this file.
if (c > 127)
``````````
</details>
https://github.com/llvm/llvm-project/pull/74511
More information about the libc-commits
mailing list