[all-commits] [llvm/llvm-project] b889cb: [libc++] Refactor num_put::do_put to reduce duplic...

Louis Dionne via All-commits all-commits at lists.llvm.org
Mon Nov 1 07:05:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b889cbf36635a302f5b77560f1769178f196c2c7
      https://github.com/llvm/llvm-project/commit/b889cbf36635a302f5b77560f1769178f196c2c7
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2021-11-01 (Mon, 01 Nov 2021)

  Changed paths:
    M libcxx/include/locale

  Log Message:
  -----------
  [libc++] Refactor num_put::do_put to reduce duplication

I was going to make a change in that area of the code and I noticed that
we basically duplicated the same code 5 times to handle integral types
and floating point types. This commit simply pulls the duplication into
a function.

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




More information about the All-commits mailing list