mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 20:00:12 +01:00
28 lines
706 B
Python
28 lines
706 B
Python
# Part of the Carbon Language project, under the Apache License v2.0 with LLVM
|
|
# Exceptions. See /LICENSE for license information.
|
|
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
cc_library(
|
|
name = "source_buffer",
|
|
srcs = ["source_buffer.cpp"],
|
|
hdrs = ["source_buffer.h"],
|
|
deps = [
|
|
"//common:error",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "source_buffer_test",
|
|
size = "small",
|
|
srcs = ["source_buffer_test.cpp"],
|
|
deps = [
|
|
":source_buffer",
|
|
"//testing/base:gtest_main",
|
|
"@com_google_googletest//:gtest",
|
|
"@llvm-project//llvm:Support",
|
|
],
|
|
)
|