Bug 1414781 - Also install clang-format r=glandium

MozReview-Commit-ID: A6Jlc5RXVuP

--HG--
extra : rebase_source : e9673f0c976e2862d7151f71ed50b01d24694b9d
This commit is contained in:
Sylvestre Ledru 2017-11-07 11:45:58 +01:00
Родитель 4e9d007f90
Коммит 2e451269e1
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -2402,12 +2402,15 @@ class StaticAnalysis(MachCommandBase):
"clang-tidy")
self._clang_tidy_path = mozpath.join(clang_tidy_path, "clang", "bin",
"clang-tidy" + config.substs.get('BIN_SUFFIX', ''))
self._clang_format_path = mozpath.join(clang_tidy_path, "clang", "bin",
"clang-format" + config.substs.get('BIN_SUFFIX', ''))
self._clang_apply_replacements = mozpath.join(clang_tidy_path, "clang", "bin",
"clang-apply-replacements" + config.substs.get('BIN_SUFFIX', ''))
self._run_clang_tidy_path = mozpath.join(clang_tidy_path, "clang", "share",
"clang", "run-clang-tidy.py")
if os.path.exists(self._clang_tidy_path) and \
os.path.exists(self._clang_format_path) and \
os.path.exists(self._clang_apply_replacements) and \
os.path.exists(self._run_clang_tidy_path) and \
not force:
@ -2475,6 +2478,7 @@ class StaticAnalysis(MachCommandBase):
'the expected output')
assert os.path.exists(self._clang_tidy_path)
assert os.path.exists(self._clang_format_path)
assert os.path.exists(self._clang_apply_replacements)
assert os.path.exists(self._run_clang_tidy_path)
return 0