Bug 1255963 - Detect warnings without space after line number; r=glandium

I'm not sure when this changed, but at least Visual Studio 2015
doesn't always emit a space between the line number and the ": warning"
text in cl.exe output.

Making the space optional in the regular expression enables one a
VS2015 build to capture 375 warnings instead of 17. We still fail to
capture some warnings (notably generic warnings about bad command
arguments and linker warnings). But that can be dealt with later.

MozReview-Commit-ID: q402CxTrQK

--HG--
extra : rebase_source : 6376a65b8d8145d68bad9b795b6abd6f4becefbd
This commit is contained in:
Gregory Szorc 2016-03-11 22:04:38 -08:00
Родитель 0dfe54cd29
Коммит c64c49d5ba
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -37,7 +37,7 @@ RE_CLANG_WARNING = re.compile(r"""
RE_MSVC_WARNING = re.compile(r"""
(?P<file>.*)
\((?P<line>\d+)\)
\s:\swarning\s
\s?:\swarning\s
(?P<flag>[^:]+)
:\s
(?P<message>.*)