Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: clyfish on July 22, 2007, 04:09:27 am

Title: suggestion for compiler plugin
Post by: clyfish on July 22, 2007, 04:09:27 am
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! :D

btw, gcc in my Ubuntu feisty has locale info, so codeblocks treat all the warnings as errors.
a example:

test.c
Code
int main() {
}
Code
$ 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.
Title: Re: suggestion for compiler plugin
Post by: stahta01 on July 22, 2007, 06:01:53 am
FYI:

They are doing a complete re-design of the Compiler framework. I suggest you read the forum on it, note I don't read it myself.

http://forums.codeblocks.org/index.php/board,19.0.html

Note, The developers forums are for developers not for users asking for new features.

Note, I myself am not on the Code::Blocks Team, but consider myself a newbie CB developer since I have submitted patches that have been applied to CB.

Tim S
Title: Re: suggestion for compiler plugin
Post by: rickg22 on July 22, 2007, 07:44:00 am
clyfish: Please file a bug report at berlios about the non-english characters along with your suggestion to fix it.
Thanks!
Title: Re: suggestion for compiler plugin
Post by: clyfish on July 23, 2007, 12:01:22 pm
stahta01:
Sorry for the post.
I've read something about the re-design of the Compiler framework.
I agree Mandrav's good idea very much, one xml file per each compiler.

rickg22:
done