Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
code::completion refactoring, questions
(1/1)
gajdosm:
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!
MortenMacFly:
--- Quote from: gajdosm on May 09, 2012, 06:48:06 pm ---i'll be happy for whatever info you can give me, thanks in advance!
--- End quote ---
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... ;-)
ollydbg:
--- Quote from: 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)
--- End quote ---
That's great!
--- Quote ---- does the parser provide complete abstract syntax tree?
--- End quote ---
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?
--- End quote ---
As I said before, the parser does not do a semantic analysis.
--- Quote ---- what is the problem with templates?
--- End quote ---
The parser does not handle template correctly, as the c++ template grammar is too complex.
Navigation
[0] Message Index
Go to full version