Bug 1406310 - Also ship clang-format in the clang-tidy build job r=glandium

MozReview-Commit-ID: 4C992sYlMo2

--HG--
extra : rebase_source : 818c9c4a73e66db7d60b55caf462d23fd352eec5
This commit is contained in:
Sylvestre Ledru 2017-10-06 09:50:48 +02:00
parent 306571dc56
commit 83284b8853

View File

@ -258,8 +258,9 @@ def get_tool(config, key):
#
# clang/
# bin/
# clang-tidy
# clang-apply-replacements
# clang-format
# clang-tidy
# include/
# * (nothing will be deleted here)
# lib/
@ -283,7 +284,7 @@ def prune_final_dir_for_clang_tidy(final_dir):
# In bin/, only keep clang-tidy and clang-apply-replacements. The last one
# is used to auto-fix some of the issues detected by clang-tidy.
re_clang_tidy = re.compile(
r"^clang-(tidy|apply-replacements)(\.exe)?$", re.I)
r"^clang-(apply-replacements|format|tidy)(\.exe)?$", re.I)
for f in glob.glob("%s/bin/*" % final_dir):
if re_clang_tidy.search(os.path.basename(f)) is None:
delete(f)