[llvm] [bazel] Remove internal headers from `hdrs` in //clang:format (PR #122987)

Jorge Gorbe Moya via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 14 15:49:05 PST 2025


https://github.com/slackito created https://github.com/llvm/llvm-project/pull/122987

They are already included in `srcs`, as they should be.

>From 5d3a0a3bc7c11ee90b83804631bc276c2b3d0177 Mon Sep 17 00:00:00 2001
From: Jorge Gorbe Moya <jgorbe at google.com>
Date: Tue, 14 Jan 2025 15:45:49 -0800
Subject: [PATCH] [bazel] Remove internal headers from `hdrs` in //clang:format

---
 utils/bazel/llvm-project-overlay/clang/BUILD.bazel | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
index 47e632098a41b9..f918cd1eeaf412 100644
--- a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel
@@ -1515,13 +1515,7 @@ cc_library(
             "lib/Format/*.h",
         ],
     ),
-    hdrs = [
-        "lib/Format/FormatTokenLexer.h",
-        "lib/Format/FormatTokenSource.h",
-        "lib/Format/Macros.h",
-        "lib/Format/QualifierAlignmentFixer.h",
-        "lib/Format/UnwrappedLineParser.h",
-    ] + glob([
+    hdrs = glob([
         "include/clang/Format/*.h",
     ]),
     includes = ["include"],



More information about the llvm-commits mailing list