[llvm] [bazel] Add cc_binary rule for 'clang-query' (PR #182014)
Davide Cunial via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 18 05:02:38 PST 2026
https://github.com/capitan-davide created https://github.com/llvm/llvm-project/pull/182014
None
>From b3522b26f5c71ae34555a7917c217e45e45b400b Mon Sep 17 00:00:00 2001
From: Davide Cunial <dcunial at proton.me>
Date: Wed, 18 Feb 2026 14:01:02 +0100
Subject: [PATCH] [bazel] Add cc_binary rule for 'clang-query'
---
.../clang-tools-extra/clang-query/BUILD.bazel | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/utils/bazel/llvm-project-overlay/clang-tools-extra/clang-query/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang-tools-extra/clang-query/BUILD.bazel
index 05fcbf7beb99f..798adef2e5b80 100644
--- a/utils/bazel/llvm-project-overlay/clang-tools-extra/clang-query/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/clang-tools-extra/clang-query/BUILD.bazel
@@ -2,7 +2,7 @@
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-load("@rules_cc//cc:defs.bzl", "cc_library")
+load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
package(
default_visibility = ["//visibility:public"],
@@ -26,3 +26,13 @@ cc_library(
"//llvm:Support",
],
)
+
+cc_binary(
+ name = "clang-query",
+ srcs = ["tool/ClangQuery.cpp"],
+ stamp = 0,
+ deps = [
+ ":lib",
+ "//clang:tooling",
+ ],
+)
More information about the llvm-commits
mailing list