[all-commits] [llvm/llvm-project] 2f6a87: [libc] Use cpp::numeric_limits in preference to C2...

Roland McGrath via All-commits all-commits at lists.llvm.org
Fri Aug 9 12:45:01 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f6a879790d0496375bb9ab5351c9b61058473e8
      https://github.com/llvm/llvm-project/commit/2f6a879790d0496375bb9ab5351c9b61058473e8
  Author: Roland McGrath <mcgrathr at google.com>
  Date:   2024-08-09 (Fri, 09 Aug 2024)

  Changed paths:
    M libc/src/stdio/printf_core/parser.h
    M libc/test/src/stdbit/stdc_bit_floor_ui_test.cpp
    M libc/test/src/stdbit/stdc_leading_zeros_ui_test.cpp

  Log Message:
  -----------
  [libc] Use cpp::numeric_limits in preference to C23 <limits.h> macros (#102665)

This updates some code to consistently use cpp::numeric_limits,
the src/__support polyfill for std::numeric_limits, rather than
the C <limits.h> macros.  This is in keeping with the general
C++-oriented style in libc code, and also sidesteps issues about
the new C23 *_WIDTH macros that the compiler-provided header does
not define outside C23 mode.

Bug: https://issues.fuchsia.dev/358196552



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