BUILD 1003 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 = ["//executable_semantics:__subpackages__"])
  5. cc_library(
  6. name = "arena",
  7. hdrs = ["arena.h"],
  8. deps = [
  9. ":nonnull",
  10. ],
  11. )
  12. cc_library(
  13. name = "error_builders",
  14. hdrs = ["error_builders.h"],
  15. deps = [
  16. ":source_location",
  17. "//common:error",
  18. ],
  19. )
  20. cc_test(
  21. name = "error_builders_test",
  22. srcs = ["error_builders_test.cpp"],
  23. deps = [
  24. ":error_builders",
  25. ":source_location",
  26. "//common:gtest_main",
  27. "@com_google_googletest//:gtest",
  28. ],
  29. )
  30. cc_library(
  31. name = "nonnull",
  32. hdrs = ["nonnull.h"],
  33. deps = [
  34. "//common:check",
  35. ],
  36. )
  37. cc_library(
  38. name = "source_location",
  39. hdrs = ["source_location.h"],
  40. deps = [
  41. ":nonnull",
  42. "//common:ostream",
  43. ],
  44. )