1import("//clang-tools-extra/clangd/quality/gen_decision_forest.gni")
2import("//llvm/utils/unittest/unittest.gni")
3
4gen_decision_forest("DecisionForestRuntimeTest") {
5  model = "decision_forest_model"
6  filename = "DecisionForestRuntimeTest"
7  cpp_class = "::ns1::ns2::test::Example"
8}
9
10unittest("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/lib/Support",
31    "//llvm/lib/Testing/Support",
32  ]
33  include_dirs = [
34    ".",
35    "//clang-tools-extra/clangd",
36
37    # To pick up the generated inc files.
38    "$target_gen_dir/../../clangd/tool",
39
40    # To pick up the generated DecisionForestRuntimeTest.h file.
41    target_gen_dir,
42  ]
43  sources = [
44    "ASTTests.cpp",
45    "Annotations.cpp",
46    "BackgroundIndexTests.cpp",
47    "CallHierarchyTests.cpp",
48    "CanonicalIncludesTests.cpp",
49    "ClangdLSPServerTests.cpp",
50    "ClangdTests.cpp",
51    "CodeCompleteTests.cpp",
52    "CodeCompletionStringsTests.cpp",
53    "CollectMacrosTests.cpp",
54    "CompileCommandsTests.cpp",
55    "CompilerTests.cpp",
56    "ConfigCompileTests.cpp",
57    "ConfigProviderTests.cpp",
58    "ConfigYAMLTests.cpp",
59    "DecisionForestTests.cpp",
60    "DexTests.cpp",
61    "DiagnosticsTests.cpp",
62    "DraftStoreTests.cpp",
63    "DumpASTTests.cpp",
64    "ExpectedTypeTest.cpp",
65    "FSTests.cpp",
66    "FileDistanceTests.cpp",
67    "FileIndexTests.cpp",
68    "FindSymbolsTests.cpp",
69    "FindTargetTests.cpp",
70    "FormatTests.cpp",
71    "FuzzyMatchTests.cpp",
72    "GlobalCompilationDatabaseTests.cpp",
73    "HeaderSourceSwitchTests.cpp",
74    "HeadersTests.cpp",
75    "HoverTests.cpp",
76    "IndexActionTests.cpp",
77    "IndexTests.cpp",
78    "JSONTransportTests.cpp",
79    "LSPClient.cpp",
80    "LoggerTests.cpp",
81    "ModulesTests.cpp",
82    "ParsedASTTests.cpp",
83    "PathMappingTests.cpp",
84    "PreambleTests.cpp",
85    "PrintASTTests.cpp",
86    "ProjectAwareIndexTests.cpp",
87    "QualityTests.cpp",
88    "RIFFTests.cpp",
89    "RenameTests.cpp",
90    "SelectionTests.cpp",
91    "SemanticHighlightingTests.cpp",
92    "SemanticSelectionTests.cpp",
93    "SerializationTests.cpp",
94    "SourceCodeTests.cpp",
95    "SymbolCollectorTests.cpp",
96    "SymbolInfoTests.cpp",
97    "SyncAPI.cpp",
98    "TUSchedulerTests.cpp",
99    "TestFS.cpp",
100    "TestIndex.cpp",
101    "TestTU.cpp",
102    "TestWorkspace.cpp",
103    "TypeHierarchyTests.cpp",
104    "URITests.cpp",
105    "XRefsTests.cpp",
106    "support/CancellationTests.cpp",
107    "support/ContextTests.cpp",
108    "support/FunctionTests.cpp",
109    "support/MarkupTests.cpp",
110    "support/MemoryTreeTests.cpp",
111    "support/TestTracer.cpp",
112    "support/ThreadingTests.cpp",
113    "support/TraceTests.cpp",
114    "tweaks/AddUsingTests.cpp",
115    "tweaks/AnnotateHighlightingsTests.cpp",
116    "tweaks/DefineInlineTests.cpp",
117    "tweaks/DefineOutlineTests.cpp",
118    "tweaks/DumpASTTests.cpp",
119    "tweaks/DumpRecordLayoutTests.cpp",
120    "tweaks/DumpSymbolTests.cpp",
121    "tweaks/ExpandAutoTypeTests.cpp",
122    "tweaks/ExpandMacroTests.cpp",
123    "tweaks/ExtractFunctionTests.cpp",
124    "tweaks/ExtractVariableTests.cpp",
125    "tweaks/ObjCLocalizeStringLiteralTests.cpp",
126    "tweaks/PopulateSwitchTests.cpp",
127    "tweaks/RawStringLiteralTests.cpp",
128    "tweaks/RemoveUsingNamespaceTests.cpp",
129    "tweaks/ShowSelectionTreeTests.cpp",
130    "tweaks/SwapIfBranchesTests.cpp",
131    "tweaks/TweakTesting.cpp",
132    "tweaks/TweakTests.cpp",
133  ]
134}
135