clang-tools 20.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
15namespace clang {
16namespace clangd {
17
18xpc_object_t jsonToXpc(const llvm::json::Value &JSON);
19llvm::json::Value xpcToJson(const xpc_object_t &XPCObject);
20
21} // namespace clangd
22} // namespace clang
23
24#endif
xpc_object_t jsonToXpc(const json::Value &JSON)
Definition: Conversion.cpp:20
json::Value xpcToJson(const xpc_object_t &XPCObject)
Definition: Conversion.cpp:26
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//