clang-tools  14.0.0git
Conversion.h
Go to the documentation of this file.
1 //===--- Conversion.h - LSP data (de-)serialization through XPC -*- 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 //===----------------------------------------------------------------------===//
8 
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_XPC_XPCJSONCONVERSIONS_H
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_XPC_XPCJSONCONVERSIONS_H
11 
12 #include "llvm/Support/JSON.h"
13 #include <xpc/xpc.h>
14 
15 namespace clang {
16 namespace clangd {
17 
18 xpc_object_t jsonToXpc(const llvm::json::Value &JSON);
19 llvm::json::Value xpcToJson(const xpc_object_t &XPCObject);
20 
21 } // namespace clangd
22 } // namespace clang
23 
24 #endif
clang::clangd::xpcToJson
json::Value xpcToJson(const xpc_object_t &XPCObject)
Definition: Conversion.cpp:26
clang::clangd::jsonToXpc
xpc_object_t jsonToXpc(const json::Value &JSON)
Definition: Conversion.cpp:20
clang
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
Definition: ApplyReplacements.h:27
Value
static constexpr bool Value
Definition: SuspiciousCallArgumentCheck.cpp:72