[all-commits] [llvm/llvm-project] 3e8771: [libc++] Fix initialization of __fill_

Jake Egan via All-commits all-commits at lists.llvm.org
Thu Mar 3 06:29:12 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e87719177296a80ebf3fbf801a6f75799d2fe5e
      https://github.com/llvm/llvm-project/commit/3e87719177296a80ebf3fbf801a6f75799d2fe5e
  Author: Jake Egan <jakeegan10 at gmail.com>
  Date:   2022-03-03 (Thu, 03 Mar 2022)

  Changed paths:
    M libcxx/include/ios
    M libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/fill_char_type.pass.cpp

  Log Message:
  -----------
  [libc++] Fix initialization of __fill_

`basic_ios` delays initialization of `__fill_` to `widen(' ')` until `fill()` is called. But, `fill(char_type)` is missing this logic, so the fill character does not get initialized to whitespace if `fill(char_type)` is called first. This patch adds this logic to `fill(char_type)`.

Reviewed By: #libc, ldionne, Quuxplusone

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




More information about the All-commits mailing list