BUILD 990 B

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_library", "cc_test")
  5. package(default_visibility = ["//visibility:public"])
  6. cc_library(
  7. name = "source_buffer",
  8. srcs = ["source_buffer.cpp"],
  9. hdrs = ["source_buffer.h"],
  10. deps = [
  11. "//common:error",
  12. "//toolchain/diagnostics:diagnostic_emitter",
  13. "//toolchain/diagnostics:file_diagnostics",
  14. "//toolchain/diagnostics:format_providers",
  15. "@llvm-project//llvm:Support",
  16. ],
  17. )
  18. cc_test(
  19. name = "source_buffer_test",
  20. size = "small",
  21. srcs = ["source_buffer_test.cpp"],
  22. deps = [
  23. ":source_buffer",
  24. "//common:check",
  25. "//testing/base:gtest_main",
  26. "//toolchain/diagnostics:diagnostic_emitter",
  27. "@googletest//:gtest",
  28. "@llvm-project//llvm:Support",
  29. ],
  30. )