BUILD 763 B

1234567891011121314151617181920212223242526272829
  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. "@llvm-project//llvm:Support",
  13. ],
  14. )
  15. cc_test(
  16. name = "source_buffer_test",
  17. size = "small",
  18. srcs = ["source_buffer_test.cpp"],
  19. deps = [
  20. ":source_buffer",
  21. "//testing/base:gtest_main",
  22. "@com_google_googletest//:gtest",
  23. "@llvm-project//llvm:Support",
  24. ],
  25. )