Page 1 of 1

Regular expressions for errors and warnings.

Posted: Tue Feb 03, 2009 5:18 pm
by KEhrhardt
Hi,
I am having a devil of a time trying to configure error and warning parsers for the compiler I am using. Here are the error/warning formats:

============ Example of compilier error ==============================
Compiling io_analogs.c because it has changed
"src\io_analogs.c", line 167: error #77-D: this declaration has no storage
class or type specifier
xxxx;
^

Build target failed; continuing with remaining targets.
Error: build failed
==================================================================

============ Example of compilier warning ============================
Compiling io_analogs.c because it has changed
"src\io_analogs.c", line 668: warning #177-D: variable "a" was declared but
never referenced
uint8_t a;
^
==================================================================

Anyone out there that is a regular expression wizard? Thanks in advance.

Re: Regular expressions for errors and warnings.

Posted: Tue Feb 03, 2009 6:08 pm
by eranif
I searched for the word 'regex' in the forum (since your compiler output looked familiar ;)) and looks like that the user from this post:
http://codelite.org/forum/viewtopic.php ... egex#p1158
Is using the exact compiler like you do (I provided him with a regex at the bottom of this page)

Eran

Re: Regular expressions for errors and warnings.

Posted: Tue Feb 03, 2009 6:25 pm
by KEhrhardt
Eran,
You are awesome. Works like a champ. :D

Thanks