BUILD 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. # Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. # Exceptions. See /LICENSE for license information.
  3. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. load("@rules_cc//cc:defs.bzl", "cc_library")
  5. package(default_visibility = ["//visibility:public"])
  6. cc_library(
  7. name = "language_server",
  8. srcs = [
  9. "language_server.cpp",
  10. "server.cpp",
  11. "server.h",
  12. ],
  13. hdrs = ["language_server.h"],
  14. # Some parameters are unused in clangd headers.
  15. copts = ["-Wno-unused-parameter"],
  16. deps = [
  17. "//common:error",
  18. "//common:ostream",
  19. "//toolchain/base:shared_value_stores",
  20. "//toolchain/diagnostics:null_diagnostics",
  21. "//toolchain/lex",
  22. "//toolchain/lex:tokenized_buffer",
  23. "//toolchain/parse",
  24. "//toolchain/parse:node_kind",
  25. "//toolchain/parse:tree",
  26. "//toolchain/source:source_buffer",
  27. "@llvm-project//clang-tools-extra/clangd:ClangDaemon",
  28. "@llvm-project//llvm:Support",
  29. ],
  30. )