KDE/kdevelop/parts/outputviews

Alexander Neundorf neundorf at kde.org
Wed Jul 20 23:23:03 UTC 2005


----------  Forwarded Message  ----------
SVN commit 437047 by neundorf:

-support more compilers with less ActionFormats :-)
-unified regexps for gcc, g++, cc, c++ and distcc
-unified regexp for uic and moc

Please test whether the output parsing still works as exptected

Alex

CCMAIL: kdevelop-devel at kde.org



 M  +10 -11    makeactionfilter.cpp


--- trunk/KDE/kdevelop/parts/outputviews/makeactionfilter.cpp #437046:437047
@@ -72,19 +72,18 @@
 MakeActionFilter::ActionFormat* MakeActionFilter::actionFormats()
 {
 	static ActionFormat formats[] = {
-		ActionFormat( i18n("compiling"), "g++", "g\\+\\+\\S* (?:\\S* )*-c (?:\\S*
 )*`[^`]*`(?:[^/\\s;]*/)*([^/\\s;]+)", 1 ), -		ActionFormat(
 i18n("compiling"), "gcc", "g\\c\\c\\S* (?:\\S* )*-c (?:\\S*
 )*`[^`]*`(?:[^/\\s;]*/)*([^/\\s;]+)", 1 ), -		ActionFormat(
 i18n("compiling"), "distcc",   "distcc (?:\\S* )*-c (?:\\S*
 )*`[^`]*`(?:[^/\\s;]*/)*([^/\\s;]+)", 1 ), -		ActionFormat(
 i18n("compiling"), "g++", "g\\+\\+\\S* (?:\\S* )*-c (?:\\S* )*-o (?:\\S*
 )(?:[^/;]*/)*([^/\\s;]+)", 1 ), -		ActionFormat( i18n("compiling"), "gcc",
 "g\\c\\c\\S* (?:\\S* )*-c (?:\\S* )*-o (?:\\S* )(?:[^/;]*/)*([^/\\s;]+)", 1
 ), -		ActionFormat( i18n("compiling"), "gcc", "g\\c\\c\\S* (?:\\S* )*-c
 (?:\\S* )*(?:[^/]*/)*([^/\\s;]*)", 1 ), -		ActionFormat( i18n("compiling"),
 "distcc",   "distcc (?:\\S* )*-c (?:\\S* )*(?:[^/]*/)*([^/\\s;]*)", 1 ),
 +		ActionFormat( i18n("compiling"), 1, 2,
 "(gcc|cc|distcc|c\\+\\+|g\\+\\+)\\S* (?:\\S* )*-c (?:\\S*
 )*`[^`]*`(?:[^/\\s;]*/)*([^/\\s;]+)"), +		ActionFormat( i18n("compiling"),
 1, 2, "(gcc|cc|distcc|c\\+\\+|g\\+\\+)\\S* (?:\\S* )*-c (?:\\S* )*-o (?:\\S*
 )(?:[^/;]*/)*([^/\\s;]+)"), +		ActionFormat( i18n("compiling"), 1, 2,
 "(gcc|cc|distcc|c\\+\\+|g\\+\\+)\\S* (?:\\S* )*-c (?:\\S*
 )*(?:[^/]*/)*([^/\\s;]*)"), ActionFormat( i18n("compiling"), "unknown",
 "^compiling (.*)", 1 ), -		ActionFormat( i18n("generating"), "moc",
 "/moc\\b.*\\s-o\\s([^\\s;]+)", 1 ), -		ActionFormat( i18n("generating"),
 "uic", "/uic\\b.*\\s-o\\s([^\\s;]+)", 1 ), +
+                //moc and uic
+		ActionFormat( i18n("generating"), 1, 2,
 "/(moc|uic)\\b.*\\s-o\\s([^\\s;]+)"), +
 		ActionFormat( i18n("linking"), "libtool",
 "/bin/sh\\s.*libtool.*--mode=link\\s.*\\s-o\\s([^\\s;]+)", 1 ),
 -		ActionFormat( i18n("linking"), "g++", "g\\+\\+\\S* (?:\\S* )*-o
 ([^\\s;]+)", 1 ), -		ActionFormat( i18n("linking"), "gcc", "g\\c\\c\\S*
 (?:\\S* )*-o ([^\\s;]+)", 1 ), +                //can distcc link too ?
+		ActionFormat( i18n("linking"), 1, 2, "(gcc|cc|c\\+\\+|g\\+\\+)\\S* (?:\\S*
 )*-o ([^\\s;]+)"), +
 		ActionFormat( i18n("creating"), "",
 "/(?:bin/sh\\s.*mkinstalldirs).*\\s([^\\s;]+)", 1 ), ActionFormat(
 i18n("installing"), "",
 "/(?:usr/bin/install|bin/sh\\s.*mkinstalldirs|bin/sh\\s.*libtool.*--mode=ins
tall).*\\s([^\\s;]+)", 1 ), ActionFormat( i18n("generating"), "dcopidl",
 "dcopidl .* > ([^\\s;]+)", 1 ),





More information about the KDevelop-devel mailing list