[clang] [llvm] [Support] Add VirtualOutputBackends to virtualize the output from tools (PR #68447)

via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 7 05:54:25 PST 2023


================
@@ -0,0 +1,158 @@
+//===- raw_ostream_proxy.h - Proxies for raw output streams -----*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_SUPPORT_RAW_OSTREAM_PROXY_H
+#define LLVM_SUPPORT_RAW_OSTREAM_PROXY_H
+
+#include "llvm/Support/raw_ostream.h"
+
+namespace llvm {
+
+/// Common bits for \a raw_ostream_proxy_adaptor<>, split out to dedup in
+/// template instantions.
+class raw_ostream_proxy_adaptor_base {
+protected:
+  raw_ostream_proxy_adaptor_base() = delete;
----------------
zmodem wrote:

I don't think this needs to be explicitly deleted when you're providing a user-defined constructor further down?

https://github.com/llvm/llvm-project/pull/68447


More information about the cfe-commits mailing list