BUILD 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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_binary")
  5. package(default_visibility = [
  6. "//bazel/check_deps:__pkg__",
  7. "//installers:__subpackages__",
  8. "//language_server:__subpackages__",
  9. ])
  10. cc_binary(
  11. name = "language_server",
  12. srcs = [
  13. "language_server.cpp",
  14. "language_server.h",
  15. "main.cpp",
  16. ],
  17. # Some parameters are unused in clangd headers.
  18. copts = ["-Wno-unused-parameter"],
  19. deps = [
  20. "//common:error",
  21. "//toolchain/base:value_store",
  22. "//toolchain/diagnostics:null_diagnostics",
  23. "//toolchain/lex",
  24. "//toolchain/lex:tokenized_buffer",
  25. "//toolchain/parse:node_kind",
  26. "//toolchain/parse:tree",
  27. "//toolchain/source:source_buffer",
  28. "@llvm-project//clang-tools-extra/clangd:clangd_library",
  29. "@llvm-project//llvm:Support",
  30. ],
  31. )