| 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/Testing", |
| 27 |
"//clang/lib/Tooling", |
| 28 |
"//clang/lib/Tooling/Core", |
| 29 |
"//clang/lib/Tooling/Inclusions", |
| 30 |
"//clang/lib/Tooling/Syntax", |
| 31 |
"//llvm/include/llvm/Config:llvm-config", |
| 32 |
"//llvm/lib/Support", |
| 33 |
"//llvm/lib/Testing/Annotations", |
| 34 |
"//llvm/lib/Testing/Support", |
| 35 |
] |
| 36 |
include_dirs = [ |
| 37 |
".", |
| 38 |
"//clang-tools-extra/clangd", |
| 39 |
|
| 40 |
# For "clang-include-cleaner/..." includes. |
| 41 |
"//clang-tools-extra/include-cleaner/include", |
| 42 |
|
| 43 |
# To pick up the generated inc files. |
| 44 |
"$target_gen_dir/../../clangd/tool", |
| 45 |
|
| 46 |
# To pick up the generated DecisionForestRuntimeTest.h file. |
| 47 |
target_gen_dir, |
| 48 |
] |
| 49 |
sources = [ |
| 50 |
"ASTSignalsTests.cpp", |
| 51 |
"ASTTests.cpp", |
| 52 |
"Annotations.cpp", |
| 53 |
"BackgroundIndexTests.cpp", |
| 54 |
"CallHierarchyTests.cpp", |
| 55 |
"CanonicalIncludesTests.cpp", |
| 56 |
"ClangdLSPServerTests.cpp", |
| 57 |
"ClangdTests.cpp", |
| 58 |
"CodeCompleteTests.cpp", |
| 59 |
"CodeCompletionStringsTests.cpp", |
| 60 |
"CollectMacrosTests.cpp", |
| 61 |
"CompileCommandsTests.cpp", |
| 62 |
"CompilerTests.cpp", |
| 63 |
"ConfigCompileTests.cpp", |
| 64 |
"ConfigProviderTests.cpp", |
| 65 |
"ConfigYAMLTests.cpp", |
| 66 |
"DecisionForestTests.cpp", |
| 67 |
"DexTests.cpp", |
| 68 |
"DiagnosticsTests.cpp", |
| 69 |
"DraftStoreTests.cpp", |
| 70 |
"DumpASTTests.cpp", |
| 71 |
"ExpectedTypeTest.cpp", |
| 72 |
"FSTests.cpp", |
| 73 |
"FeatureModulesTests.cpp", |
| 74 |
"FileDistanceTests.cpp", |
| 75 |
"FileIndexTests.cpp", |
| 76 |
"FindSymbolsTests.cpp", |
| 77 |
"FindTargetTests.cpp", |
| 78 |
"FormatTests.cpp", |
| 79 |
"FuzzyMatchTests.cpp", |
| 80 |
"GlobalCompilationDatabaseTests.cpp", |
| 81 |
"HeaderSourceSwitchTests.cpp", |
| 82 |
"HeadersTests.cpp", |
| 83 |
"HoverTests.cpp", |
| 84 |
"IncludeCleanerTests.cpp", |
| 85 |
"IndexActionTests.cpp", |
| 86 |
"IndexTests.cpp", |
| 87 |
"InlayHintTests.cpp", |
| 88 |
"InsertionPointTests.cpp", |
| 89 |
"JSONTransportTests.cpp", |
| 90 |
"LSPBinderTests.cpp", |
| 91 |
"LSPClient.cpp", |
| 92 |
"LoggerTests.cpp", |
| 93 |
"ModulesTests.cpp", |
| 94 |
"ParsedASTTests.cpp", |
| 95 |
"PathMappingTests.cpp", |
| 96 |
"PreambleTests.cpp", |
| 97 |
"PrerequisiteModulesTest.cpp", |
| 98 |
"PrintASTTests.cpp", |
| 99 |
"ProjectAwareIndexTests.cpp", |
| 100 |
"QualityTests.cpp", |
| 101 |
"RIFFTests.cpp", |
| 102 |
"RenameTests.cpp", |
| 103 |
"ReplayPeambleTests.cpp", |
| 104 |
"SelectionTests.cpp", |
| 105 |
"SemanticHighlightingTests.cpp", |
| 106 |
"SemanticSelectionTests.cpp", |
| 107 |
"SerializationTests.cpp", |
| 108 |
"SourceCodeTests.cpp", |
| 109 |
"StdLibTests.cpp", |
| 110 |
"SymbolCollectorTests.cpp", |
| 111 |
"SymbolInfoTests.cpp", |
| 112 |
"SyncAPI.cpp", |
| 113 |
"TUSchedulerTests.cpp", |
| 114 |
"TestFS.cpp", |
| 115 |
"TestIndex.cpp", |
| 116 |
"TestTU.cpp", |
| 117 |
"TestWorkspace.cpp", |
| 118 |
"ThreadCrashReporterTests.cpp", |
| 119 |
"TidyProviderTests.cpp", |
| 120 |
"TypeHierarchyTests.cpp", |
| 121 |
"URITests.cpp", |
| 122 |
"XRefsTests.cpp", |
| 123 |
"support/CancellationTests.cpp", |
| 124 |
"support/ContextTests.cpp", |
| 125 |
"support/FileCacheTests.cpp", |
| 126 |
"support/FunctionTests.cpp", |
| 127 |
"support/MarkupTests.cpp", |
| 128 |
"support/MemoryTreeTests.cpp", |
| 129 |
"support/PathTests.cpp", |
| 130 |
"support/TestTracer.cpp", |
| 131 |
"support/ThreadingTests.cpp", |
| 132 |
"support/TraceTests.cpp", |
| 133 |
"tweaks/AddUsingTests.cpp", |
| 134 |
"tweaks/AnnotateHighlightingsTests.cpp", |
| 135 |
"tweaks/DefineInlineTests.cpp", |
| 136 |
"tweaks/DefineOutlineTests.cpp", |
| 137 |
"tweaks/DumpASTTests.cpp", |
| 138 |
"tweaks/DumpRecordLayoutTests.cpp", |
| 139 |
"tweaks/DumpSymbolTests.cpp", |
| 140 |
"tweaks/ExpandDeducedTypeTests.cpp", |
| 141 |
"tweaks/ExpandMacroTests.cpp", |
| 142 |
"tweaks/ExtractFunctionTests.cpp", |
| 143 |
"tweaks/ExtractVariableTests.cpp", |
| 144 |
"tweaks/MemberwiseConstructorTests.cpp", |
| 145 |
"tweaks/ObjCLocalizeStringLiteralTests.cpp", |
| 146 |
"tweaks/ObjCMemberwiseInitializerTests.cpp", |
| 147 |
"tweaks/PopulateSwitchTests.cpp", |
| 148 |
"tweaks/RawStringLiteralTests.cpp", |
| 149 |
"tweaks/RemoveUsingNamespaceTests.cpp", |
| 150 |
"tweaks/ScopifyEnumTests.cpp", |
| 151 |
"tweaks/ShowSelectionTreeTests.cpp", |
| 152 |
"tweaks/SpecialMembersTests.cpp", |
| 153 |
"tweaks/SwapBinaryOperandsTests.cpp", |
| 154 |
"tweaks/SwapIfBranchesTests.cpp", |
| 155 |
"tweaks/TweakTesting.cpp", |
| 156 |
"tweaks/TweakTests.cpp", |
| 157 |
] |
| 158 |
} |