From 08ccb5e4750803352fb5622dacad684da3ce8e01 Mon Sep 17 00:00:00 2001 From: Austin Schuh Date: Wed, 8 Jan 2025 11:22:13 -0800 Subject: [PATCH] Expose clang-format, git-clang-format, and libclang This makes it possible to use sandboxed versions of those tools in scripts. Signed-off-by: Austin Schuh --- toolchain/BUILD.llvm_repo | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/toolchain/BUILD.llvm_repo b/toolchain/BUILD.llvm_repo index bbcbd1d5..f2bbc76e 100644 --- a/toolchain/BUILD.llvm_repo +++ b/toolchain/BUILD.llvm_repo @@ -150,3 +150,24 @@ filegroup( name = "clang-tidy", srcs = ["bin/clang-tidy"], ) + +filegroup( + name = "clang-format", + srcs = ["bin/clang-format"], +) + +filegroup( + name = "git-clang-format", + srcs = ["bin/git-clang-format"], +) + +filegroup( + name = "libclang", + srcs = glob( + [ + "lib/libclang.so", + "lib/libclang.dylib", + ], + allow_empty = True, + ), +)