":features",
"//clang-tools-extra/clang-tidy",
"//clang-tools-extra/clang-tidy:all-checks",
+ "//clang-tools-extra/clangd/support",
"//clang/lib/AST",
"//clang/lib/ASTMatchers",
"//clang/lib/Basic",
"//clang/lib/Tooling/Syntax",
"//llvm/lib/Support",
"//llvm/lib/Target:AllTargetsInfos",
- "//llvm/utils/gn/build/libs/atomic",
"//llvm/utils/gn/build/libs/pthread",
]
include_dirs = [
]
sources = [
"AST.cpp",
- "Cancellation.cpp",
"ClangdLSPServer.cpp",
"ClangdServer.cpp",
"CodeComplete.cpp",
"CollectMacros.cpp",
"CompileCommands.cpp",
"Compiler.cpp",
- "Context.cpp",
"Diagnostics.cpp",
"DraftStore.cpp",
"ExpectedTypes.cpp",
"FS.cpp",
- "FSProvider.cpp",
"FileDistance.cpp",
"FindSymbols.cpp",
"FindTarget.cpp",
"Hover.cpp",
"IncludeFixer.cpp",
"JSONTransport.cpp",
- "Logger.cpp",
"ParsedAST.cpp",
"PathMapping.cpp",
"Preamble.cpp",
"Selection.cpp",
"SemanticHighlighting.cpp",
"SemanticSelection.cpp",
- "Shutdown.cpp",
"SourceCode.cpp",
"TUScheduler.cpp",
- "Threading.cpp",
- "Trace.cpp",
"URI.cpp",
"XRefs.cpp",
"index/Background.cpp",
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang-tools-extra/clangd",
+ "//clang-tools-extra/clangd/support",
"//llvm/lib/Support",
]
include_dirs = [ "../.." ]
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang-tools-extra/clangd",
+ "//clang-tools-extra/clangd/support",
"//llvm/lib/Support",
]
include_dirs = [ "../../.." ]
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang-tools-extra/clangd",
+ "//clang-tools-extra/clangd/support",
"//clang/lib/AST",
"//clang/lib/Tooling/Core",
"//llvm/lib/Support",
--- /dev/null
+# clangd/support contains low-level support libraries that do not depend
+# on clang either programmatically or conceptually.
+static_library("support") {
+ output_name = "clangdSupport"
+ configs += [ "//llvm/utils/gn/build:clang_code" ]
+ deps = [
+ "//llvm/lib/Support",
+ "//llvm/utils/gn/build/libs/atomic",
+ ]
+ include_dirs = [ ".." ]
+ sources = [
+ "Cancellation.cpp",
+ "Context.cpp",
+ "FSProvider.cpp",
+ "Logger.cpp",
+ "Shutdown.cpp",
+ "Threading.cpp",
+ "Trace.cpp",
+ ]
+}
output = clangd_lit_site_cfg_file
extra_values = [
- "CMAKE_CURRENT_BINARY_DIR=" +
- rebase_path(get_label_info("//clang-tools-extra/clangd/test",
- "target_out_dir")),
+ "CMAKE_CURRENT_BINARY_DIR=" + rebase_path(
+ get_label_info("//clang-tools-extra/clangd/test", "target_out_dir")),
"CMAKE_CURRENT_SOURCE_DIR=" +
rebase_path("//clang-tools-extra/clangd/test"),
"ASTTests.cpp",
"Annotations.cpp",
"BackgroundIndexTests.cpp",
- "CancellationTests.cpp",
"CanonicalIncludesTests.cpp",
"ClangdLSPServerTests.cpp",
"ClangdTests.cpp",
"CodeCompletionStringsTests.cpp",
"CollectMacrosTests.cpp",
"CompileCommandsTests.cpp",
- "ContextTests.cpp",
"DexTests.cpp",
"DiagnosticsTests.cpp",
"DraftStoreTests.cpp",
"FindTargetTests.cpp",
"FormatTests.cpp",
"FormattedStringTests.cpp",
- "FunctionTests.cpp",
"FuzzyMatchTests.cpp",
"GlobalCompilationDatabaseTests.cpp",
"HeaderSourceSwitchTests.cpp",
"TestFS.cpp",
"TestIndex.cpp",
"TestTU.cpp",
- "ThreadingTests.cpp",
- "TraceTests.cpp",
"TweakTesting.cpp",
"TweakTests.cpp",
"TypeHierarchyTests.cpp",
"URITests.cpp",
"XRefsTests.cpp",
+ "support/CancellationTests.cpp",
+ "support/ContextTests.cpp",
+ "support/FunctionTests.cpp",
+ "support/ThreadingTests.cpp",
+ "support/TraceTests.cpp",
]
}
configs += [ "//llvm/utils/gn/build:clang_code" ]
deps = [
"//clang-tools-extra/clangd",
+ "//clang-tools-extra/clangd/support",
"//llvm/lib/Support",
]
include_dirs = [ ".." ]
deps = [
":conversions",
"//clang-tools-extra/clangd",
+ "//clang-tools-extra/clangd/support",
"//llvm/lib/Support",
]
include_dirs = [ ".." ]
copy("libexec") {
sources = [
- "libexec/ccc-analyzer",
"libexec/c++-analyzer",
+ "libexec/ccc-analyzer",
]
if (host_os == "win") {
sources += [
- "libexec/ccc-analyzer.bat",
"libexec/c++-analyzer.bat",
+ "libexec/ccc-analyzer.bat",
]
}
outputs = [ "$root_build_dir/libexec/{{source_file_part}}" ]
copy("share") {
sources = [
- "share/scan-build/sorttable.js",
"share/scan-build/scanview.css",
+ "share/scan-build/sorttable.js",
]
outputs = [ "$root_build_dir/share/scan-build/{{source_file_part}}" ]
}