You can see, some files in /trunk/src/plugins/compilergcc are more or less the same.
Should these compiler plugins be merged to a common plugin?
I think the difference is the regex.
And we can put these regexs and other info into some data file.
So when a user want to add support for a new compiler, he only need add a new data file.
What a stupid suggestion!
btw, gcc in my Ubuntu feisty has locale info, so codeblocks treat all the warnings as errors.
a example:
test.c
$ gcc test.c -o test -Wall
test.c: 在函数 ‘main’ 中:
test.c:2: 警告: 在有返回值的函数中,控制流程到达函数尾
$ export LANG="C"
$ gcc test.c -o test -Wall
test.c: In function 'main':
test.c:2: warning: control reaches end of non-void function
So I think compiler plugin should set locale to "C" before run gcc, or the regex will be incorrect.