[all-commits] [llvm/llvm-project] 90670b: Support: Add proxies for raw_ostream and raw_pwrit...

Steven Wu via All-commits all-commits at lists.llvm.org
Tue Aug 26 16:20:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90670b5ca890ebe1ee3397be6b82a49883dd4406
      https://github.com/llvm/llvm-project/commit/90670b5ca890ebe1ee3397be6b82a49883dd4406
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2025-08-26 (Tue, 26 Aug 2025)

  Changed paths:
    A llvm/include/llvm/Support/raw_ostream_proxy.h
    M llvm/lib/Support/CMakeLists.txt
    A llvm/lib/Support/raw_ostream_proxy.cpp
    M llvm/unittests/Support/CMakeLists.txt
    A llvm/unittests/Support/raw_ostream_proxy_test.cpp

  Log Message:
  -----------
  Support: Add proxies for raw_ostream and raw_pwrite_stream (#113362)

Add proxies classes for `raw_ostream` and `raw_pwrite_stream` called
`raw_ostream_proxy` and `raw_pwrite_stream_proxy`. Add adaptor classes,
`raw_ostream_proxy_adaptor<>` and `raw_pwrite_stream_proxy_adaptor<>`,
to allow subclasses to use a different parent class than `raw_ostream`
or `raw_pwrite_stream`.

The adaptors are used by a future patch to help a subclass of
`llvm::vfs::OutputFile`, an abstract subclass of `raw_pwrite_stream`, to
proxy a `raw_fd_ostream`.

Patched by dexonsmith.



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