[all-commits] [llvm/llvm-project] 8f0814: [libc] Clarify printf percent conversion behavior.

michaelrj-google via All-commits all-commits at lists.llvm.org
Fri Feb 24 13:29:44 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f0814f5dcdc29a01d0d3e87d07227f553472a51
      https://github.com/llvm/llvm-project/commit/8f0814f5dcdc29a01d0d3e87d07227f553472a51
  Author: Michael Jones <michaelrj at google.com>
  Date:   2023-02-24 (Fri, 24 Feb 2023)

  Changed paths:
    M libc/src/stdio/printf_core/parser.cpp
    M libc/test/src/stdio/printf_core/parser_test.cpp

  Log Message:
  -----------
  [libc] Clarify printf percent conversion behavior.

Almost all printf conversions ending in '%' are undefined, but they're
traditionally treated as if the complete conversion specifier is "%%".
This patch modifies the parser to more closely match that behavior.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D144679




More information about the All-commits mailing list