BUILD 886 B

1234567891011121314151617181920212223242526272829303132
  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. "@llvm-project//llvm:Support",
  14. ],
  15. )
  16. cc_test(
  17. name = "source_buffer_test",
  18. size = "small",
  19. srcs = ["source_buffer_test.cpp"],
  20. deps = [
  21. ":source_buffer",
  22. "//common:check",
  23. "//testing/base:gtest_main",
  24. "//toolchain/diagnostics:diagnostic_emitter",
  25. "@googletest//:gtest",
  26. "@llvm-project//llvm:Support",
  27. ],
  28. )