[libc-commits] [libc] [libc] Add option to disable printf bit int (PR #180832)

via libc-commits libc-commits at lists.llvm.org
Tue Feb 10 12:59:27 PST 2026


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 origin/main HEAD --extensions h,cpp -- libc/src/stdio/printf_core/converter_utils.h libc/src/stdio/printf_core/core_structs.h libc/src/stdio/printf_core/parser.h libc/src/stdio/printf_core/write_int_converter.h libc/test/UnitTest/PrintfMatcher.cpp libc/test/src/stdio/printf_core/parser_test.cpp libc/test/src/stdio/sprintf_test.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

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

``````````diff
diff --git a/libc/test/src/stdio/printf_core/parser_test.cpp b/libc/test/src/stdio/printf_core/parser_test.cpp
index 4e1b796ec..a73e3af99 100644
--- a/libc/test/src/stdio/printf_core/parser_test.cpp
+++ b/libc/test/src/stdio/printf_core/parser_test.cpp
@@ -230,7 +230,6 @@ TEST(LlvmLibcPrintfParserTest, EvalOneArgWithLongLengthModifier) {
   ASSERT_PFORMAT_EQ(expected, format_arr[0]);
 }
 
-
 #ifndef LIBC_COPT_PRINTF_DISABLE_BITINT
 TEST(LlvmLibcPrintfParserTest, EvalOneArgWithBitWidthLengthModifier) {
   LIBC_NAMESPACE::printf_core::FormatSection format_arr[10];

``````````

</details>


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


More information about the libc-commits mailing list