forked from qt-creator/qt-creator
msvc2tasks.pl: Adapt to MSVC2015.
The format of the compiler warnings changed: c:\foo.cpp(395) : warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) c:\foo.cpp(395): warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) Change-Id: Iaa04d8fedbb0a3da2802be1c860d54fefb7bfe5d Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -16,7 +16,7 @@ while (my $line = <STDIN> ) {
|
|||||||
chomp($line);
|
chomp($line);
|
||||||
# --- extract file name based matching:
|
# --- extract file name based matching:
|
||||||
# c:\foo.cpp(395) : warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
|
# c:\foo.cpp(395) : warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
|
||||||
if ($line =~ /^([^(]+)\((\d+)\) : warning (C\d+:.*)$/) {
|
if ($line =~ /^([^(]+)\((\d+)\) ?: warning (C\d+:.*)$/) {
|
||||||
my $fileName = $1;
|
my $fileName = $1;
|
||||||
my $lineNumber = $2;
|
my $lineNumber = $2;
|
||||||
my $text = $3;
|
my $text = $3;
|
||||||
|
Reference in New Issue
Block a user