BUILD 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. package(default_visibility = ["//visibility:public"])
  5. cc_library(
  6. name = "diagnostic_emitter",
  7. hdrs = ["diagnostic_emitter.h"],
  8. deps = ["@llvm-project//llvm:Support"],
  9. )
  10. cc_library(
  11. name = "null_diagnostics",
  12. hdrs = ["null_diagnostics.h"],
  13. deps = [
  14. ":diagnostic_emitter",
  15. "@llvm-project//llvm:Support",
  16. ],
  17. )
  18. cc_library(
  19. name = "mocks",
  20. testonly = 1,
  21. hdrs = ["mocks.h"],
  22. deps = [
  23. ":diagnostic_emitter",
  24. "@com_google_googletest//:gtest",
  25. "@llvm-project//llvm:Support",
  26. ],
  27. )
  28. cc_test(
  29. name = "diagnostic_emitter_test",
  30. size = "small",
  31. srcs = ["diagnostic_emitter_test.cpp"],
  32. deps = [
  33. ":diagnostic_emitter",
  34. ":mocks",
  35. "@com_google_googletest//:gtest_main",
  36. "@llvm-project//llvm:Support",
  37. ],
  38. )