Author Topic: suggestion for compiler plugin  (Read 3676 times)

Offline clyfish

  • Multiple posting newcomer
  • *
  • Posts: 26
suggestion for compiler plugin
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7594
    • My Best Post
Re: suggestion for compiler plugin
« Reply #1 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
« Last Edit: July 22, 2007, 06:05:10 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: suggestion for compiler plugin
« Reply #2 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!

Offline clyfish

  • Multiple posting newcomer
  • *
  • Posts: 26
Re: suggestion for compiler plugin
« Reply #3 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