You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/msvc2tasks.pl
+32-9
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@
27
27
28
28
=head1NAME
29
29
30
-
msvc2tasks.pl - Convert MSVC warnings into Qt Creator task files.
30
+
msvc2tasks.pl - Convert MSVC/Clang-cl warnings and errors into Qt Creator task files.
31
31
32
32
=head1SYNOPSIS
33
33
@@ -37,16 +37,39 @@ =head1 SYNOPSIS
37
37
38
38
use strict;
39
39
40
-
while (my$line = <STDIN> ) {
41
-
chomp($line);
42
-
# --- extract file name based matching:
40
+
subfilterLine
41
+
{
42
+
my ($line) = @_;
43
+
44
+
my ($fileName, $lineNumber, $category, $text);
45
+
46
+
# --- MSVC:
43
47
# c:\foo.cpp(395) : warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
44
-
if ($line =~ /^([^(]+)\((\d+)\) ?: warning (C\d+:.*)$/) {
45
-
my$fileName = $1;
46
-
my$lineNumber = $2;
47
-
my$text = $3;
48
+
if ($line =~ /^([^(]+)\((\d+)\) ?: (warning|error) (C\d+:.*)$/) {
49
+
$fileName = $1;
50
+
$lineNumber = $2;
51
+
$category = $3;
52
+
$text = $4;
53
+
# --- Clang-cl:
54
+
# ..\gui\text\qfontengine_ft.cpp(1743,5) : warning: variable 'bytesPerLine' is used uninitialized whenever switch default is taken [-Wsometimes-uninitialized]
0 commit comments