"error" regex pattern

Discussion about CodeLite development process and patches
marfi
CodeLite Expert
Posts: 159
Joined: Mon Nov 03, 2008 9:17 pm
Contact:

"error" regex pattern

Post 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