Add a FatalUserError macro to help print user-caused errors. (#668)

This commit is contained in:
Jon Meow
2021-07-21 12:38:56 -07:00
committed by GitHub
parent f3cbfc04c6
commit 034f3600e3
15 changed files with 102 additions and 26 deletions
+18
View File
@@ -4,6 +4,24 @@
package(default_visibility = ["//executable_semantics:__subpackages__"])
cc_library(
name = "error",
hdrs = ["error.h"],
deps = [
"@llvm-project//llvm:Support",
],
)
cc_test(
name = "error_test",
srcs = ["error_test.cpp"],
deps = [
":error",
"@llvm-project//llvm:gtest",
"@llvm-project//llvm:gtest_main",
],
)
cc_library(
name = "tracing_flag",
srcs = ["tracing_flag.cpp"],