Regular expressions for errors and warnings.

General questions regarding the usage of CodeLite
KEhrhardt
CodeLite Enthusiast
Posts: 24
Joined: Wed Jan 28, 2009 7:51 pm
Contact:

Regular expressions for errors and warnings.

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Regular expressions for errors and warnings.

Post 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
Make sure you have read the HOW TO POST thread
KEhrhardt
CodeLite Enthusiast
Posts: 24
Joined: Wed Jan 28, 2009 7:51 pm
Contact:

Re: Regular expressions for errors and warnings.

Post by KEhrhardt »

Eran,
You are awesome. Works like a champ. :D

Thanks
Post Reply