[all-commits] [llvm/llvm-project] ff1374: [libc] Add Printf FormatSection Matcher

michaelrj-google via All-commits all-commits at lists.llvm.org
Fri Apr 22 14:21:52 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ff1374785f82c2c184df7ca09a923acf62e4c277
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-04-22 (Fri, 22 Apr 2022)

  Changed paths:
    M libc/src/stdio/printf_core/core_structs.h
    M libc/test/src/stdio/printf_core/CMakeLists.txt
    M libc/test/src/stdio/printf_core/parser_test.cpp
    M libc/utils/UnitTest/CMakeLists.txt
    M libc/utils/UnitTest/FPMatcher.cpp
    A libc/utils/UnitTest/PrintfMatcher.cpp
    A libc/utils/UnitTest/PrintfMatcher.h
    A libc/utils/UnitTest/StringUtils.h

  Log Message:
  [libc] Add Printf FormatSection Matcher

This patch changes the printf parser tests to use a more robust matcher.
This allows for better debugging of parsing issues. This does not affect
the actual printf code at all, only the tests.

Reviewed By: sivachandra, lntue

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

More information about the All-commits mailing list