mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-25 18:01:12 +00:00
Add a language server for carbon as part of GSoC. This currently does code outline using toolchain parser. See development steps in utils/vscode/README.md for running and using language server.
29 lines
880 B
Python
29 lines
880 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
|
|
|
|
package(default_visibility = [
|
|
"//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/diagnostics:null_diagnostics",
|
|
"//toolchain/lexer:tokenized_buffer",
|
|
"//toolchain/parser:parse_node_kind",
|
|
"//toolchain/parser:parse_tree",
|
|
"//toolchain/source:source_buffer",
|
|
"@llvm-project//clang-tools-extra/clangd:clangd_library",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|