Switch executable semantics to use ErrorBuilder directly and relocate macros (#1184)

This commit is contained in:
Jon Meow
2022-04-13 09:05:21 -07:00
committed by GitHub
parent 6542506cdc
commit 87e58f5db3
37 changed files with 327 additions and 376 deletions
+16 -10
View File
@@ -13,23 +13,21 @@ cc_library(
)
cc_library(
name = "error",
hdrs = ["error.h"],
name = "error_builders",
hdrs = ["error_builders.h"],
deps = [
"//common:check",
":source_location",
"//common:error",
"//executable_semantics/ast:source_location",
"@llvm-project//llvm:Support",
],
)
cc_test(
name = "error_test",
srcs = ["error_test.cpp"],
name = "error_builders_test",
srcs = ["error_builders_test.cpp"],
deps = [
":error",
":error_builders",
":source_location",
"@com_google_googletest//:gtest_main",
"@llvm-project//llvm:Support",
],
)
@@ -38,6 +36,14 @@ cc_library(
hdrs = ["nonnull.h"],
deps = [
"//common:check",
"@llvm-project//llvm:Support",
],
)
cc_library(
name = "source_location",
hdrs = ["source_location.h"],
deps = [
":nonnull",
"//common:ostream",
],
)