Add Clangd package to DEPS file
This allows for a clangd version to be downloaded that matches
the clang release used by the build system.
Bug: webrtc:15874
Change-Id: Iced12b2e6b4a1a91bb1a97e0a6a2bb9d35cc51c6
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/347741
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Florent Castelli <orphis@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#42089}
diff --git a/DEPS b/DEPS
index 6bef982..07aba88 100644
--- a/DEPS
+++ b/DEPS
@@ -17,6 +17,9 @@
# the gn arg 'use_clang_coverage').
'checkout_clang_coverage_tools': False,
+ # Fetch clangd into the same bin/ directory as our clang binary.
+ 'checkout_clangd': False,
+
'chromium_git': 'https://chromium.googlesource.com',
# Keep the Chromium default of generating location tags.
@@ -2426,6 +2429,15 @@
'--package=coverage_tools'],
},
{
+ # This is also supposed to support the same set of platforms as 'clang'
+ # above. LLVM ToT support isn't provided at the moment.
+ 'name': 'clangd',
+ 'pattern': '.',
+ 'condition': 'checkout_clangd',
+ 'action': ['vpython3', 'src/tools/clang/scripts/update.py',
+ '--package=clangd'],
+ },
+ {
# Update LASTCHANGE.
'name': 'lastchange',
'pattern': '.',