Skip to content

Commit e2b83f0

Browse files
committed
Add bazel support for clangd as a library.
1 parent fa7dd49 commit e2b83f0

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

clang-tools-extra/clangd/Transport.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_TRANSPORT_H
1919
#define LLVM_CLANG_TOOLS_EXTRA_CLANGD_TRANSPORT_H
2020

21-
#include "Feature.h"
2221
#include "llvm/ADT/StringRef.h"
2322
#include "llvm/Support/JSON.h"
2423
#include "llvm/Support/raw_ostream.h"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2+
# See https://llvm.org/LICENSE.txt for license information.
3+
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4+
5+
package(default_visibility = ["//visibility:public"])
6+
7+
licenses(["notice"])
8+
9+
cc_library(
10+
name = "clangd_library",
11+
srcs = [
12+
"JSONTransport.cpp",
13+
"Protocol.cpp",
14+
"URI.cpp",
15+
"index/SymbolID.cpp",
16+
"support/Logger.cpp",
17+
"support/Trace.cpp",
18+
"support/MemoryTree.cpp",
19+
"support/Context.cpp",
20+
"support/Cancellation.cpp",
21+
"support/ThreadCrashReporter.cpp",
22+
"support/Shutdown.cpp",
23+
],
24+
hdrs = [
25+
"Transport.h",
26+
"Protocol.h",
27+
"URI.h",
28+
"LSPBinder.h",
29+
"index/SymbolID.h",
30+
"support/Function.h",
31+
"support/Cancellation.h",
32+
"support/ThreadCrashReporter.h",
33+
"support/Logger.h",
34+
"support/Trace.h",
35+
"support/MemoryTree.h",
36+
"support/Context.h",
37+
"support/Shutdown.h",
38+
],
39+
includes = ["."],
40+
deps = [
41+
"//llvm:Support",
42+
"//clang:basic",
43+
"//clang:index",
44+
],
45+
)

0 commit comments

Comments
 (0)