mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-29 16:15:01 +01:00
This is mirroring the structure of codegen/codegen.h, lower/lower.h, and check/check.h. I recently did lex/lex.h, so parse/parse.h is the last. Now, the directory's main API file is eponymous with the directory. I could've used a friend function to avoid making the Tree constructor public, but in other places we make less use of `friend`, just leaving things public. This felt more consistent, and simple because it only affects the constructor.
36 lines
1.0 KiB
Python
36 lines
1.0 KiB
Python
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_binary")
|
|
|
|
package(default_visibility = [
|
|
"//bazel/check_deps:__pkg__",
|
|
"//installers:__subpackages__",
|
|
"//language_server:__subpackages__",
|
|
])
|
|
|
|
cc_binary(
|
|
name = "language_server",
|
|
srcs = [
|
|
"language_server.cpp",
|
|
"language_server.h",
|
|
"main.cpp",
|
|
],
|
|
# Some parameters are unused in clangd headers.
|
|
copts = ["-Wno-unused-parameter"],
|
|
deps = [
|
|
"//common:error",
|
|
"//toolchain/base:value_store",
|
|
"//toolchain/diagnostics:null_diagnostics",
|
|
"//toolchain/lex",
|
|
"//toolchain/lex:tokenized_buffer",
|
|
"//toolchain/parse",
|
|
"//toolchain/parse:node_kind",
|
|
"//toolchain/parse:tree",
|
|
"//toolchain/source:source_buffer",
|
|
"@llvm-project//clang-tools-extra/clangd:clangd_library",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|