BUILD 938 B

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