Files
carbon-lang/language_server/BUILD
T
Jon Ross-Perkins 1b55ad86dd Extend SharedValueStores to SemIR (#3313)
Building on #3311, change SemIR to use the SharedValueStore. Since this
removes hermeticity, raw output no longer prints ints, reals, and
strings. TokenizedBuffer accessors are modified to return IDs because
values are often passed through in semantics without needing to read
them.

I would've put SharedValueStores on Context, except for the
GetArrayBoundValue convenience method. I felt awkward removing that, so
it's on File, at least for now. That's then used by the formatter and
Lower too. The flipside of this is that TokenizedBuffer has a
SharedValueStores only for printing, so maybe that's similar enough to
what File is doing.

This doesn't start shifting other SemIR members to ValueStore, but that
seems like a next step.
2023-10-20 17:53:00 +00:00

34 lines
1019 B
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:tokenized_buffer",
"//toolchain/parse:node_kind",
"//toolchain/parse:tree",
"//toolchain/source:source_buffer",
"@llvm-project//clang-tools-extra/clangd:clangd_library",
"@llvm-project//llvm:Support",
],
)