[Lldb-commits] [lldb] [lldb[RPC] Upstream RPC server interface emitters (PR #138032)
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Tue May 6 06:15:57 PDT 2025
================
@@ -0,0 +1,73 @@
+//===-- RPCServerHeaderEmitter.cpp ----------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "RPCServerHeaderEmitter.h"
+#include "RPCCommon.h"
+
+#include "clang/AST/AST.h"
+#include "clang/AST/Mangle.h"
+#include "clang/Frontend/CompilerInstance.h"
+
+#include "llvm/ADT/StringRef.h"
+#include "llvm/Support/ToolOutputFile.h"
+#include "llvm/Support/raw_ostream.h"
+
+using namespace clang;
+using namespace lldb_rpc_gen;
+
+void RPCServerHeaderEmitter::EmitMethod(const Method &method) {
+ const std::string &MangledName = method.MangledName;
----------------
DavidSpickett wrote:
Why the mangled name? Add a comment explaining why it cannot be the unmangled name.
https://github.com/llvm/llvm-project/pull/138032
More information about the lldb-commits
mailing list