[memprof] Upgrade a unit test to MemProf Version 3 (#117063)
[llvm-project.git] / utils / bazel / llvm-project-overlay / clang-tools-extra / unittests / BUILD.bazel
blob47ec4552856416adfa35cf4e4694910edcaeb8de
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_test")
7 package(
8     default_visibility = ["//visibility:public"],
9     features = ["layering_check"],
12 licenses(["notice"])
14 cc_test(
15     name = "clang_tidy_test",
16     size = "small",
17     srcs = glob(
18         [
19             "clang-tidy/*.cpp",
20             "clang-tidy/*.h",
21         ],
22         allow_empty = False,
23     ),
24     includes = ["clang-tidy/include"],
25     deps = [
26         "//clang:ast",
27         "//clang:ast_matchers",
28         "//clang:basic",
29         "//clang:frontend",
30         "//clang:lex",
31         "//clang:serialization",
32         "//clang:testing",
33         "//clang:tooling",
34         "//clang:tooling_core",
35         "//clang:transformer",
36         "//clang-tools-extra/clang-tidy:android",
37         "//clang-tools-extra/clang-tidy:google",
38         "//clang-tools-extra/clang-tidy:lib",
39         "//clang-tools-extra/clang-tidy:llvm",
40         "//clang-tools-extra/clang-tidy:misc",
41         "//clang-tools-extra/clang-tidy:modernize",
42         "//clang-tools-extra/clang-tidy:objc",
43         "//clang-tools-extra/clang-tidy:performance",
44         "//clang-tools-extra/clang-tidy:readability",
45         "//clang-tools-extra/clang-tidy:tool",
46         "//clang-tools-extra/clang-tidy:utils",
47         "//llvm:FrontendOpenMP",
48         "//llvm:Support",
49         "//llvm:TestingAnnotations",
50         "//llvm:TestingSupport",
51         "//third-party/unittest:gmock",
52         "//third-party/unittest:gtest",
53         "//third-party/unittest:gtest_main",
54     ],
57 cc_test(
58     name = "clang_doc_test",
59     size = "small",
60     srcs = glob(
61         [
62             "clang-doc/*.cpp",
63             "clang-doc/*.h",
64         ],
65         allow_empty = False,
66     ),
67     deps = [
68         "//clang:ast",
69         "//clang:basic",
70         "//clang-tools-extra/clang-doc:lib",
71         "//llvm:BitstreamReader",
72         "//llvm:BitstreamWriter",
73         "//third-party/unittest:gtest",
74         "//third-party/unittest:gtest_main",
75     ],