[vm] Add runtime/.clang-tidy and run clang-tidy in parallel (via dart script)
Change-Id: I1ef69f0be521db2466d1e60663c75c177bc4b778 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/115402 Reviewed-by: Samir Jindel <sjindel@google.com>
This commit is contained in:
+2
-12
@@ -236,20 +236,10 @@ def _CheckClangTidy(input_api, output_api):
|
||||
return []
|
||||
|
||||
args = [
|
||||
'./buildtools/linux-x64/clang/bin/clang-tidy',
|
||||
'-checks=readability-implicit-bool-conversion',
|
||||
'tools/sdks/dart-sdk/bin/dart',
|
||||
'runtime/tools/run_clang_tidy.dart',
|
||||
]
|
||||
args.extend(files)
|
||||
args.append('--')
|
||||
args.extend([
|
||||
'-I.',
|
||||
'-Iruntime',
|
||||
'-Iruntime/include',
|
||||
'-Ithird_party/tcmalloc/gperftools/src ',
|
||||
'-DTARGET_ARCH_X64',
|
||||
'-DDEBUG',
|
||||
'-DTARGET_OS_LINUX',
|
||||
])
|
||||
stdout = input_api.subprocess.check_output(args).strip()
|
||||
if not stdout:
|
||||
return []
|
||||
|
||||
Reference in New Issue
Block a user