Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

suggestion for compiler plugin

(1/1)

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

--- Code: ---int main() {
}

--- End code ---

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

--- End code ---
So I think compiler plugin should set locale to "C" before run gcc, or the regex will be incorrect.

stahta01:
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

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

Navigation

[0] Message Index

Go to full version