Page 1 of 1

"error" regex pattern

Posted: Sat Mar 28, 2009 9:58 pm
by marfi
Hi,
I suggest to update regex pattern for gnu g++ compiler's errors because current form treats following output as an error due to empty space after sequence ":12:".

Code: Select all

In file included from /home/michal/Src/Projekty/CodeDesigner/src/gui/GUI.h:34,
                 from /home/michal/Src/Projekty/CodeDesigner/src/ProjectManager.h:4,
                 from /home/michal/Src/Projekty/CodeDesigner/src/Project.cpp:12:
../../wxAdditions/include/wx/propgrid/propgrid.h: In member function ‘void wxPropertyGrid::SetCurrentCategory(wxPGId)’:
../../wxAdditions/include/wx/propgrid/propgrid.h:5638: warning: suggest explicit braces to avoid ambiguous ‘else’
I changed regex pattern to this form:

Code: Select all

(^[a-zA-Z:]{0,2}[ a-zA-Z\.0-9_/\+\-]+ *)(:)([0-9]+ *)(:)( error:)
which helped me, but I'm not sure it is a bullet-proof solution... ;)

Regards
Michal