From 0d9eb105524712ac108efb164019c15dc8449520 Mon Sep 17 00:00:00 2001 From: Ng Zhi An Date: Thu, 11 Jun 2020 15:46:25 -0700 Subject: [PATCH] Allow clang-tidy to be checked out via DEPS Similar to chromium side change: https://crrev.com/c/1961070. When checkout_clang_tidy is set, we will check out clang-tidy via clang/scripts/update.py. The goal is to be able to run clang-tidy using Tricium. Bug: chromium:1087565,v8:10488 Change-Id: I14ebaaca33ca20d59d9cc5e537826829608a1e6f Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2242257 Reviewed-by: Michael Achenbach Commit-Queue: Zhi An Ng Cr-Commit-Position: refs/heads/master@{#68418} --- DEPS | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/DEPS b/DEPS index 38c4a9546d..583a33e263 100644 --- a/DEPS +++ b/DEPS @@ -24,6 +24,8 @@ vars = { 'checkout_instrumented_libraries': False, 'checkout_ittapi': False, + # Fetch clang-tidy into the same bin/ directory as our clang binary. + 'checkout_clang_tidy': False, 'chromium_url': 'https://chromium.googlesource.com', 'android_url': 'https://android.googlesource.com', 'download_gcmole': False, @@ -485,6 +487,13 @@ hooks = [ 'condition': 'host_os != "aix"', 'action': ['python', 'v8/tools/clang/scripts/update.py'], }, + { + 'name': 'clang_tidy', + 'pattern': '.', + 'condition': 'checkout_clang_tidy', + 'action': ['python', 'v8/tools/clang/scripts/update.py', + '--package=clang-tidy'], + }, { # Update LASTCHANGE. 'name': 'lastchange',