[all-commits] [llvm/llvm-project] 52b27c: [libc++] Refactor basic_filebuf::overflow() (#144793)

Louis Dionne via All-commits all-commits at lists.llvm.org
Tue Jun 24 10:59:10 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 52b27c2bd627c4b83d94b945748faf237cc28a3c
      https://github.com/llvm/llvm-project/commit/52b27c2bd627c4b83d94b945748faf237cc28a3c
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2025-06-24 (Tue, 24 Jun 2025)

  Changed paths:
    M libcxx/include/fstream

  Log Message:
  -----------
  [libc++] Refactor basic_filebuf::overflow() (#144793)

Refactor the function to streamline the logic so it matches the
specification in [filebuf.virtuals] more closely. In particular, avoid
modifying the put area pointers when we loop around after a partial
codecvt conversion.

Note that we're technically not up-to-spec in this implementation, since
the Standard says that we shouldn't try more than once after a partial
codecvt conversion. However, this refactoring attempts not to change any
functionality.



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