Files
carbon-lang/diagnostics/BUILD
T
Chandler Carruth b72294aa57 Merge the diagnostics library from the toolchain repo. (#212)
Main original commit message:

> Add stubs of a diagnostic emission library. (#13)
>
> This doesn't have much wired up yet, but tries to lay out the most
> primitive API pattern.
2020-12-08 01:46:14 -08:00

27 lines
769 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
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
package(default_visibility = ["//visibility:public"])
cc_library(
name = "diagnostic_emitter",
srcs = ["diagnostic_emitter.cpp"],
hdrs = ["diagnostic_emitter.h"],
deps = ["@llvm-project//llvm:Support"],
)
cc_test(
name = "diagnostic_emitter_test",
srcs = ["diagnostic_emitter_test.cpp"],
deps = [
":diagnostic_emitter",
"@llvm-project//llvm:Support",
"@llvm-project//llvm:gmock",
"@llvm-project//llvm:gtest",
"@llvm-project//llvm:gtest_main",
],
)