From 655c89088f563cd553595ec707b312c62a6efc02 Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Tue, 16 Apr 2024 19:06:52 +0000 Subject: [PATCH] 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 Commit-Queue: Florent Castelli Cr-Commit-Position: refs/heads/main@{#42089} --- DEPS | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/DEPS b/DEPS index 6bef982328..07aba881f4 100644 --- a/DEPS +++ b/DEPS @@ -17,6 +17,9 @@ vars = { # 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. @@ -2425,6 +2428,15 @@ hooks = [ 'action': ['python3', 'src/tools/clang/scripts/update.py', '--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',