Add C/C++ header rewriter
This adds a C/C++ header rewriter utility. See the top comment on a quick description of how it works.
No workspace rule is provided yet, that will come later.
Test Plan: This is a build utility, doesn't really matter.
X-Origin-Diff: phab/D705
GitOrigin-RevId: 4bf274d8301f3a38a1ec7512bf310be9815fb647
diff --git a/build/bazel_cc_fix/BUILD.bazel b/build/bazel_cc_fix/BUILD.bazel
new file mode 100644
index 0000000..28b6438
--- /dev/null
+++ b/build/bazel_cc_fix/BUILD.bazel
@@ -0,0 +1,19 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
+
+go_library(
+ name = "go_default_library",
+ srcs = ["main.go"],
+ importpath = "source.monogon.dev/build/bazel_cc_fix",
+ visibility = ["//visibility:private"],
+ deps = [
+ "//build/bazel_cc_fix/ccfixspec:go_default_library",
+ "@com_github_golang_protobuf//proto:go_default_library",
+ "@com_github_mattn_go_shellwords//:go_default_library",
+ ],
+)
+
+go_binary(
+ name = "bazel_cc_fix",
+ embed = [":go_default_library"],
+ visibility = ["//visibility:public"],
+)