Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: gajdosm on May 09, 2012, 06:48:06 pm

Title: code::completion refactoring, questions
Post by: gajdosm on May 09, 2012, 06:48:06 pm
hi guys, i'm currently planning to do some refactoring with this plugin (to make it more modular) and first have some questions:

- does the parser provide complete abstract syntax tree?
- what standards of c does it cover?
- what is the problem with templates?

i'll be happy for whatever info you can give me, thanks in advance!
Title: Re: code::completion refactoring, questions
Post by: MortenMacFly on May 09, 2012, 08:36:57 pm
i'll be happy for whatever info you can give me, thanks in advance!
Start here:
http://wiki.codeblocks.org/index.php?title=Code_Completion_Design

...and probably here:
http://wiki.codeblocks.org/index.php?title=Code::Completion_Rewrite

There is an initial CLang plugin (in the forums and also, there is an ongoing help request to wrap the CC plugin of CodeLite into C::B's plugin framework. Eran (eranif) himself proposed that initially and there is some work done already. Please try to avoid re-inventing the wheel... ;-)
Title: Re: code::completion refactoring, questions
Post by: ollydbg on May 10, 2012, 09:10:40 am
hi guys, i'm currently planning to do some refactoring with this plugin (to make it more modular)
That's great!
Quote
- does the parser provide complete abstract syntax tree?
No, the parser is quite lightweight compared to the parser in GCC/Clang. No AST is used here.
Quote
- what standards of c does it cover?
As I said before, the parser does not do a semantic analysis.
Quote
- what is the problem with templates?
The parser does not handle template correctly, as the c++ template grammar is too complex.