[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / utils / bazel / llvm-project-overlay / clang-tools-extra / include-cleaner / BUILD.bazel
blob28f90efb3ba7f3a2c839eae220e1aeb17caa7d5d
1 # This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2 # See https://llvm.org/LICENSE.txt for license information.
3 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5 load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
7 package(
8     default_visibility = ["//visibility:public"],
9     features = ["layering_check"],
12 licenses(["notice"])
14 cc_library(
15     name = "include_cleaner",
16     srcs = glob([
17         "lib/*.h",
18         "lib/*.cpp",
19     ]),
20     hdrs = glob(["include/clang-include-cleaner/*.h"]),
21     includes = ["include/"],
22     deps = [
23         "//clang:ast",
24         "//clang:basic",
25         "//clang:format",
26         "//clang:frontend",
27         "//clang:lex",
28         "//clang:tooling_core",
29         "//clang:tooling_inclusions",
30         "//llvm:Support",
31     ],
34 cc_library(
35     name = "include_cleaner_internal",
36     hdrs = glob(["lib/*.h"]),
37     includes = ["lib/"],
38     visibility = [":__subpackages__"],
39     deps = [
40         ":include_cleaner",
41         "//clang:ast",
42         "//clang:basic",
43         "//clang:frontend",
44         "//clang:lex",
45         "//clang:tooling_inclusions",
46         "//llvm:Support",
47     ],
50 cc_binary(
51     name = "clang-include-cleaner",
52     srcs = glob([
53         "tool/*.cpp",
54     ]),
55     deps = [
56         ":include_cleaner",
57         ":include_cleaner_internal",
58         "//clang:frontend",
59         "//clang:lex",
60         "//clang:tooling",
61         "//llvm:Support",
62     ],