BUILD 739 B

1234567891011121314151617181920212223242526
  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 = ["@llvm-project//llvm:Support"],
  11. )
  12. cc_test(
  13. name = "source_buffer_test",
  14. srcs = ["source_buffer_test.cpp"],
  15. deps = [
  16. ":source_buffer",
  17. "@llvm-project//llvm:Support",
  18. "@llvm-project//llvm:gmock",
  19. "@llvm-project//llvm:gtest",
  20. "@llvm-project//llvm:gtest_main",
  21. ],
  22. )