Hi,
Thanks for the input i used the "this thread" to see an RegEx error parser example which i used to create
one for the TI compiler, CDT6.1 and older have this RegEx parser available as error parser.
My compiler settings are configured to produce the following output:
"foo.cpp", line 259: warning #880-D: parameter "foobar" was never referenced
"foo.cpp", line 259: error #880-D: parameter "foobar" was never referenced
Setting up RegEx parser in Eclipse Kepler
- Create a RegEx erorr parser Windows->Prefereces->Settings tab Error Parser click add and select a name for your parser example, TI RegEx Parser
- Select the error parser you created in the list and use the following regular epxression to parse the error or warning in the bottom window that appears.
Warning RegEx
- Pattern: "(.*)",\Wline\W([0-9]*):\Wwarning(.*)
- File: $1
- Line: $2
- Description: Warning $1, line $2: $3
Error RegEx
- Pattern: "(.*)",\Wline\W([0-9]*):\Werror(.*)
- File: $1
- Line: $2
- Description: Error $1, line $2: $3
Enable the parser in your project:
Project Properties -> C/C++ build -> Settings -> tab Error Parser
mark the checkbox that has the error parser you just created (example TI RegEx Parser)
to have error parsing for TI compilers available in eclipse.
Hope this helps people that also try to parse errors with Eclipse Kepler, please let me know when this example is not clear.
Regards Rob
edit: first group of regex was incorrect should be "(*.)", to only have filename without quotations