Debian Codegraph @

llvm-project/llvm/utils/gn/secondary/clang-tools-extra/clangd/unittests/BUILD.gn

raw
1 import("//clang-tools-extra/clangd/quality/gen_decision_forest.gni")
2 import("//third-party/unittest/unittest.gni")
3
4 gen_decision_forest("DecisionForestRuntimeTest") {
5 model = "decision_forest_model"
6 filename = "DecisionForestRuntimeTest"
7 cpp_class = "::ns1::ns2::test::Example"
8 }
9
10 unittest("ClangdTests") {
11 configs += [ "//llvm/utils/gn/build:clang_code" ]
12 deps = [
13 ":DecisionForestRuntimeTest",
14 "//clang-tools-extra/clang-tidy",
15 "//clang-tools-extra/clangd",
16 "//clang-tools-extra/clangd:features",
17 "//clang-tools-extra/clangd/refactor/tweaks",
18 "//clang/lib/AST",
19 "//clang/lib/Basic",
20 "//clang/lib/Format",
21 "//clang/lib/Frontend",
22 "//clang/lib/Index",
23 "//clang/lib/Lex",
24 "//clang/lib/Sema",
25 "//clang/lib/Serialization",
26 "//clang/lib/Tooling",
27 "//clang/lib/Tooling/Core",
28 "//clang/lib/Tooling/Inclusions",
29 "//clang/lib/Tooling/Syntax",
30 "//llvm/include/llvm/Config:llvm-config",
31 "//llvm/lib/Support",
32 "//llvm/lib/Testing/Annotations",
33 "//llvm/lib/Testing/Support",
34 ]
35 include_dirs = [
36 ".",
37 "//clang-tools-extra/clangd",
38
39 # For "clang-include-cleaner/..." includes.
40 "//clang-tools-extra/include-cleaner/include",
41
42 # To pick up the generated inc files.
43 "$target_gen_dir/../../clangd/tool",
44
45 # To pick up the generated DecisionForestRuntimeTest.h file.
46 target_gen_dir,
47 ]
48 sources = [
49 "ASTSignalsTests.cpp",
50 "ASTTests.cpp",
51 "Annotations.cpp",
52 "BackgroundIndexTests.cpp",
53 "CallHierarchyTests.cpp",
54 "CanonicalIncludesTests.cpp",
55 "ClangdLSPServerTests.cpp",
56 "ClangdTests.cpp",
57 "CodeCompleteTests.cpp",
58 "CodeCompletionStringsTests.cpp",
59 "CollectMacrosTests.cpp",
60 "CompileCommandsTests.cpp",
61 "CompilerTests.cpp",
62 "ConfigCompileTests.cpp",
63 "ConfigProviderTests.cpp",
64 "ConfigYAMLTests.cpp",
65 "DecisionForestTests.cpp",
66 "DexTests.cpp",
67 "DiagnosticsTests.cpp",
68 "DraftStoreTests.cpp",
69 "DumpASTTests.cpp",
70 "ExpectedTypeTest.cpp",
71 "FSTests.cpp",
72 "FeatureModulesTests.cpp",
73 "FileDistanceTests.cpp",
74 "FileIndexTests.cpp",
75 "FindSymbolsTests.cpp",
76 "FindTargetTests.cpp",
77 "FormatTests.cpp",
78 "FuzzyMatchTests.cpp",
79 "GlobalCompilationDatabaseTests.cpp",
80 "HeaderSourceSwitchTests.cpp",
81 "HeadersTests.cpp",
82 "HoverTests.cpp",
83 "IncludeCleanerTests.cpp",
84 "IndexActionTests.cpp",
85 "IndexTests.cpp",
86 "InlayHintTests.cpp",
87 "InsertionPointTests.cpp",
88 "JSONTransportTests.cpp",
89 "LSPBinderTests.cpp",
90 "LSPClient.cpp",
91 "LoggerTests.cpp",
92 "ModulesTests.cpp",
93 "ParsedASTTests.cpp",
94 "PathMappingTests.cpp",
95 "PreambleTests.cpp",
96 "PrintASTTests.cpp",
97 "ProjectAwareIndexTests.cpp",
98 "QualityTests.cpp",
99 "RIFFTests.cpp",
100 "RenameTests.cpp",
101 "SelectionTests.cpp",
102 "SemanticHighlightingTests.cpp",
103 "SemanticSelectionTests.cpp",
104 "SerializationTests.cpp",
105 "SourceCodeTests.cpp",
106 "StdLibTests.cpp",
107 "SymbolCollectorTests.cpp",
108 "SymbolInfoTests.cpp",
109 "SyncAPI.cpp",
110 "TUSchedulerTests.cpp",
111 "TestFS.cpp",
112 "TestIndex.cpp",
113 "TestTU.cpp",
114 "TestWorkspace.cpp",
115 "ThreadCrashReporterTests.cpp",
116 "TidyProviderTests.cpp",
117 "TypeHierarchyTests.cpp",
118 "URITests.cpp",
119 "XRefsTests.cpp",
120 "support/CancellationTests.cpp",
121 "support/ContextTests.cpp",
122 "support/FunctionTests.cpp",
123 "support/MarkupTests.cpp",
124 "support/MemoryTreeTests.cpp",
125 "support/PathTests.cpp",
126 "support/TestTracer.cpp",
127 "support/ThreadingTests.cpp",
128 "support/TraceTests.cpp",
129 "tweaks/AddUsingTests.cpp",
130 "tweaks/AnnotateHighlightingsTests.cpp",
131 "tweaks/DefineInlineTests.cpp",
132 "tweaks/DefineOutlineTests.cpp",
133 "tweaks/DumpASTTests.cpp",
134 "tweaks/DumpRecordLayoutTests.cpp",
135 "tweaks/DumpSymbolTests.cpp",
136 "tweaks/ExpandDeducedTypeTests.cpp",
137 "tweaks/ExpandMacroTests.cpp",
138 "tweaks/ExtractFunctionTests.cpp",
139 "tweaks/ExtractVariableTests.cpp",
140 "tweaks/MemberwiseConstructorTests.cpp",
141 "tweaks/ObjCLocalizeStringLiteralTests.cpp",
142 "tweaks/ObjCMemberwiseInitializerTests.cpp",
143 "tweaks/PopulateSwitchTests.cpp",
144 "tweaks/RawStringLiteralTests.cpp",
145 "tweaks/RemoveUsingNamespaceTests.cpp",
146 "tweaks/ShowSelectionTreeTests.cpp",
147 "tweaks/SwapIfBranchesTests.cpp",
148 "tweaks/TweakTesting.cpp",
149 "tweaks/TweakTests.cpp",
150 ]
151 }