| 1 | //===-- RPCServerHeaderEmitter.h ----------------------------------------===// |
| 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 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef LLDB_RPC_GEN_RPCSERVERHEADEREMITTER_H |
| 10 | #define |
| 11 | |
| 12 | #include "RPCCommon.h" |
| 13 | |
| 14 | #include "clang/AST/AST.h" |
| 15 | #include "llvm/Support/ToolOutputFile.h" |
| 16 | |
| 17 | using namespace clang; |
| 18 | |
| 19 | namespace lldb_rpc_gen { |
| 20 | /// Emit the source code for server-side *.h files. |
| 21 | class : public FileEmitter { |
| 22 | public: |
| 23 | (std::unique_ptr<llvm::ToolOutputFile> &&OutputFile) |
| 24 | : FileEmitter(std::move(OutputFile)) { |
| 25 | Begin(); |
| 26 | } |
| 27 | |
| 28 | () { End(); } |
| 29 | |
| 30 | void (const Method &method); |
| 31 | |
| 32 | private: |
| 33 | void EmitHandleRPCCall(); |
| 34 | |
| 35 | void (const std::string &MangledName); |
| 36 | |
| 37 | void (const std::string &MangledName); |
| 38 | |
| 39 | std::string (); |
| 40 | |
| 41 | void (); |
| 42 | |
| 43 | void (); |
| 44 | }; |
| 45 | } // namespace lldb_rpc_gen |
| 46 | |
| 47 | #endif // LLDB_RPC_GEN_RPCSERVERHEADEREMITTER_H |
| 48 | |