Import tl/expected to experiment with better error-handling
Change-Id: I997c37827c0ba169158556112547e2bb57e2bcbb
Signed-off-by: James Kuszmaul <jabukuszmaul+collab@gmail.com>
diff --git a/.clang-format b/.clang-format
index 7e45a49..fcdaf0d 100644
--- a/.clang-format
+++ b/.clang-format
@@ -11,7 +11,7 @@
- Regex: '^<(cxx|Halide|HalidBuffer|lzma|node|v8|osqp|oscqp\+\+|snappy|snappy-sinksource).h>$'
Priority: 3
# Force some more third-party headers to be appropriately categorized.
- - Regex: '^(<|")(absl|ceres|ctre|Eigen|external|FRC_NetworkCommunication|foxglove|flatbuffers|glib-2.0|glog|gflags|gmock|gtest|google|libusb-1.0|lz4|opencv2|openssl|rawrtcc|sanitizer|nlohmann|third_party|wpi)/.*(>|")$'
+ - Regex: '^(<|")(absl|ceres|ctre|Eigen|external|FRC_NetworkCommunication|foxglove|flatbuffers|glib-2.0|glog|gflags|gmock|gtest|google|libusb-1.0|lz4|opencv2|openssl|rawrtcc|sanitizer|nlohmann|third_party|wpi|tl)/.*(>|")$'
Priority: 3
# The default regexes. For some reason, if we don't specify them here, then
# clang-format will overwrite them with the custom ones we specify above.
diff --git a/WORKSPACE b/WORKSPACE
index ec5e8e0..3b2eb57 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -1655,3 +1655,17 @@
sha256 = "b106b3b975d3cf3ad3fcd5e4be7409f6095e1d531346a90c4ad6bdb7da1d08a5",
url = "https://software.frc971.org/Build-Dependencies/2023_calibrate_multi_cameras_data.tar.gz",
)
+
+http_archive(
+ name = "com_github_tartanllama_expected",
+ build_file_content = """
+cc_library(
+ name = "com_github_tartanllama_expected",
+ srcs = ["include/tl/expected.hpp"],
+ includes = ["include"],
+ visibility = ["//visibility:public"],
+)""",
+ sha256 = "1db357f46dd2b24447156aaf970c4c40a793ef12a8a9c2ad9e096d9801368df6",
+ strip_prefix = "expected-1.1.0",
+ url = "https://github.com/TartanLlama/expected/archive/refs/tags/v1.1.0.tar.gz",
+)