[RISCV][VLOPT] Add vector narrowing integer right shift instructions to isSupportedIn...
[llvm-project.git] / lldb / tools / lldb-dap / OutputRedirector.h
blobe26d1648b104f9d5f4b3c9cd7bce132da811c8dc
1 //===-- OutputRedirector.h -------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===/
9 #ifndef LLDB_TOOLS_LLDB_DAP_OUTPUT_REDIRECTOR_H
10 #define LLDB_TOOLS_LLDB_DAP_OUTPUT_REDIRECTOR_H
12 #include "llvm/ADT/StringRef.h"
13 #include "llvm/Support/Error.h"
15 namespace lldb_dap {
17 /// Redirects the output of a given file descriptor to a callback.
18 ///
19 /// \return
20 /// \a Error::success if the redirection was set up correctly, or an error
21 /// otherwise.
22 llvm::Error RedirectFd(int fd, std::function<void(llvm::StringRef)> callback);
24 } // namespace lldb_dap
26 #endif // LLDB_TOOLS_LLDB_DAP_OUTPUT_REDIRECTOR_H