summaryrefslogtreecommitdiff
path: root/clang-tools-extra/clangd/xpc/Conversion.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/xpc/Conversion.h')
-rw-r--r--clang-tools-extra/clangd/xpc/Conversion.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/xpc/Conversion.h b/clang-tools-extra/clangd/xpc/Conversion.h
new file mode 100644
index 00000000000..936f51bea48
--- /dev/null
+++ b/clang-tools-extra/clangd/xpc/Conversion.h
@@ -0,0 +1,25 @@
+//===--- Conversion.h - LSP data (de-)serialization through XPC -*- C++ -*-===//
+//
+// The LLVM Compiler Infrastructure
+//
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_XPC_XPCJSONCONVERSIONS_H
+#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_XPC_XPCJSONCONVERSIONS_H
+
+#include "llvm/Support/JSON.h"
+#include <xpc/xpc.h>
+
+namespace clang {
+namespace clangd {
+
+xpc_object_t jsonToXpc(const llvm::json::Value &JSON);
+llvm::json::Value xpcToJson(const xpc_object_t &XPCObject);
+
+} // namespace clangd
+} // namespace clang
+
+#endif