[all-commits] [llvm/llvm-project] 18db3e: [libc] Template printf_core::Parser to support wch...

Alex Strelnikov via All-commits all-commits at lists.llvm.org
Fri Sep 11 11:21:55 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 18db3eee9d04da389180f907bfb1bf84bb589abd
      https://github.com/llvm/llvm-project/commit/18db3eee9d04da389180f907bfb1bf84bb589abd
  Author: Alex Strelnikov <strel at google.com>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    M libc/fuzzing/stdio/printf_parser_fuzz.cpp
    M libc/src/__support/printf_core/CMakeLists.txt
    M libc/src/__support/printf_core/core_structs.h
    M libc/src/__support/printf_core/parser.h
    M libc/src/__support/printf_core/printf_main.h
    M libc/test/UnitTest/CMakeLists.txt
    M libc/test/UnitTest/LibcTest.cpp
    M libc/test/UnitTest/PrintfMatcher.cpp
    M libc/test/UnitTest/PrintfMatcher.h
    M libc/test/UnitTest/StringUtils.h
    M libc/test/src/__support/printf_core/CMakeLists.txt
    M libc/test/src/__support/printf_core/parser_test.cpp

  Log Message:
  -----------
  [libc] Template printf_core::Parser to support wchar_t. (#222988)

This is the next step in the ongoing refactor to support wide character
printf functions.

`printf_core::FormatSection` is also templated on character type as it
is required for parser_test. `FormatSection` is named in many more
places. In order to keep this PR on the smaller side, it also gets a
rename + `char` alias in the pattern of `basic_string_view` /
`string_view`.

Assisted-by: Automated tooling, human reviewed.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list