News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

suggestion for compiler plugin

Started by clyfish, July 22, 2007, 04:09:27 AM

Previous topic - Next topic

clyfish

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

int main() {
}


$ 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.

stahta01

#1
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.next.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
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

rickg22

clyfish: Please file a bug report at berlios about the non-english characters along with your suggestion to fix it.
Thanks!

clyfish

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