[libc-commits] [libc] [libc] Moved shared constexpr to the top (PR #144569)

via libc-commits libc-commits at lists.llvm.org
Tue Jun 17 10:15:09 PDT 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 HEAD~1 HEAD --extensions cpp -- libc/src/__support/wchar/character_converter.cpp
``````````

</details>

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

``````````diff
diff --git a/libc/src/__support/wchar/character_converter.cpp b/libc/src/__support/wchar/character_converter.cpp
index e45ee4105..ecc0ba306 100644
--- a/libc/src/__support/wchar/character_converter.cpp
+++ b/libc/src/__support/wchar/character_converter.cpp
@@ -68,8 +68,7 @@ int CharacterConverter::push(char8_t utf8_byte) {
   // Any subsequent push
   // Adding 6 more bits so need to left shift
   if (num_ones == 1 && !isComplete()) {
-    char32_t byte =
-        utf8_byte & MASK_ENCODED_BITS;
+    char32_t byte = utf8_byte & MASK_ENCODED_BITS;
     state->partial = state->partial << ENCODED_BITS_PER_UTF8;
     state->partial |= byte;
     state->bytes_processed++;

``````````

</details>


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


More information about the libc-commits mailing list