curl-library
[PATCH] finding .y errors
From: Tor Arntsen <tor_at_spacetec.no>
Date: Tue, 24 Feb 2004 17:30:56 +0100
Date: Tue, 24 Feb 2004 17:30:56 +0100
Tentative patch for the web page scripts, it doesn't find warnings/errors
from yacc/bison-generated files because those files are full of #line
statements that change the compiler logging output.
Something like the below should catch things like e.g.
getdate.y:981: error: too many arguments to function `Curl_gd_parse'
(from <http://curl.haxx.se/auto/log.cgi?id=20040224073821-32607>)
-Tor
---- Index: auto/showlog.cgi =================================================================== RCS file: /repository/curl-www/auto/showlog.cgi,v retrieving revision 1.7 diff -u -r1.7 showlog.cgi --- auto/showlog.cgi 19 Feb 2004 18:53:36 -0000 1.7 +++ auto/showlog.cgi 24 Feb 2004 16:24:26 -0000 @@ -41,6 +41,7 @@ if( # gcc warning: ($_ =~ /([.\/a-zA-Z0-9]*)\.[ch]:([0-9:]*): /) || + ($_ =~ /([a-zA-Z0-9]*)\.y:([0-9:]*): /) || # test case failure ($_ =~ /FAILED/) || # the line below is adjusted for AIX xlc warnings: Index: auto/summarize.pl =================================================================== RCS file: /repository/curl-www/auto/summarize.pl,v retrieving revision 1.19 diff -u -r1.19 summarize.pl --- auto/summarize.pl 23 Feb 2004 16:31:31 -0000 1.19 +++ auto/summarize.pl 24 Feb 2004 16:24:26 -0000 @@ -354,6 +354,7 @@ $libcurl = $1; } elsif(($_ =~ /([.\/a-zA-Z0-9]*)\.[ch]:([0-9:]*): /) || + ($_ =~ /([a-zA-Z0-9]*)\.y:([0-9:]*): /) || ($_ =~ /\"([_.\/a-zA-Z0-9]+)\", line/) || ($_ =~ /^cc: Warning: ([.\/a-zA-Z0-9]*)/) || ($_ =~ /cc: (REMARK|WARNING) File/) ||Received on 2004-02-24