clang-tools 8.0.0

Conversion.h
Go to the documentation of this file.
1 //===--- Conversion.h - LSP data (de-)serialization through XPC -*- C++ -*-===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_XPC_XPCJSONCONVERSIONS_H
11 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_XPC_XPCJSONCONVERSIONS_H
12
13 #include "llvm/Support/JSON.h"
14 #include <xpc/xpc.h>
15
16 namespace clang {
17 namespace clangd {
18
19 xpc_object_t jsonToXpc(const llvm::json::Value &JSON);
20 llvm::json::Value xpcToJson(const xpc_object_t &XPCObject);
21
22 } // namespace clangd
23 } // namespace clang
24
25 #endif
clang::clangd::xpcToJson
json::Value xpcToJson(const xpc_object_t &XPCObject)
Definition: Conversion.cpp:27
clang
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Definition: ChangeNamespace.cpp:18
clang::clangd::jsonToXpc
xpc_object_t jsonToXpc(const json::Value &JSON)
Definition: Conversion.cpp:21