MakeActionFilter for compiler output view

Andreas Pakulat apaku at gmx.de
Sat May 19 00:01:18 BST 2007


On 18.05.07 23:58:20, hg wrote:
> I took a look at the source in 
> kdevelop-3.4.1/parts/outputviews/makeactionfilter.cpp and found the RegExp in 
> line 76 to be responsible.
> 
> ActionFormat( i18n("compiling"), 1, 2, "(gcc|CC|cc|distcc|c\\+\\+|g\\+\\+)\\S* 
> (?:\\S* )*-c (?:\\S* )*-o (?:\\S* )(?:[^/;]*/)*([^/\\s;]+)"),
> 
> Trying not to change the regexp to much I inserted the term "(?:-\S*\s*)*". 
> Could you consider to insert that additional term on line 76 than it would 
> support both versions without breaking anything (as far as I can tell without 
> building a debug version). The complete line would be:
> 
> ActionFormat( i18n("compiling"), 1, 2, "(gcc|CC|cc|distcc|c\\+\\+|g\\+\\+)\\S* 
> (?:\\S* )*-c (?:\\S* )*-o (?:\\S* )(?:-\\S*\\s*)*(?:[^/;]*/)*([^/\\s;]+)"),
> 
> Could you please verify this?

Please open a bugreport for this and attach a patch.

> By the way: Why don't you pick the filename by the file extension?

No idea.

Andreas

-- 
Your life would be very empty if you had nothing to regret.




More information about the KDevelop mailing list