зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1414781 - Also install clang-format r=glandium
MozReview-Commit-ID: A6Jlc5RXVuP --HG-- extra : rebase_source : e9673f0c976e2862d7151f71ed50b01d24694b9d
This commit is contained in:
Родитель
4e9d007f90
Коммит
2e451269e1
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче