[all-commits] [llvm/llvm-project] f0c06c: [libc++][format][5/6] Improve format_to_n.

mordante via All-commits all-commits at lists.llvm.org
Wed May 18 11:14:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0c06c042040fd8e7f296a66f1253e571610e64b
      https://github.com/llvm/llvm-project/commit/f0c06c042040fd8e7f296a66f1253e571610e64b
  Author: Mark de Wever <koraq at xs4all.nl>
  Date:   2022-05-18 (Wed, 18 May 2022)

  Changed paths:
    M libcxx/include/__format/buffer.h
    M libcxx/include/format

  Log Message:
  -----------
  [libc++][format][5/6] Improve format_to_n.

Use a specialized buffer wrapper to limit the number of insertions in the
buffer. After the limit has been reached the buffer only needs to count
the number of insertions to return the buffer size required to store the
entire output.

Depends on D110498

Reviewed By: #libc, Mordante

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




More information about the All-commits mailing list