Bug 1544208 - inform the user who tries to use `mach static-analysis check ...` of when there are no files eligible for analysis. r=bastien

Differential Revision: https://phabricator.services.mozilla.com/D28032

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andi-Bogdan Postelnicu 2019-04-23 10:01:12 +00:00
Родитель 466dc4b001
Коммит 8d5f50af08
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -1846,6 +1846,9 @@ class StaticAnalysis(MachCommandBase):
total = total + 1
if not total:
self.log(logging.INFO, 'static-analysis', {},
"There are no files eligible for analysis. Please note that 'header' files "
"cannot be used for analysis since they do not consist compilation units.")
return 0
cwd = self.topobjdir