Author Topic: Codecompletion using dictionary functionality  (Read 4891 times)

mariocup

  • Guest
Codecompletion using dictionary functionality
« on: July 03, 2007, 03:42:32 pm »
Hi Codeblocks team,

editors like kate use different mechanism for code/command completion. One method is to add a dictionary file, that contains predefined names. I think the following two implementiations could be useful for other users.

1. Support for including multiple abbreviations files in codeblocks.
2. Support of dictionary files that contain e.g. the name of special function registers (ARM, AVR etc.) and works with command completion.

Bye,

Mario

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Codecompletion using dictionary functionality
« Reply #1 on: July 03, 2007, 11:37:25 pm »
Hey, what a great idea! :D
Please post it on Berlios (Berlios is *THE* official site for feature requests).

Offline pauliusz

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: Codecompletion using dictionary functionality
« Reply #2 on: July 04, 2007, 12:20:30 am »
I think it would be better if CC could generate dictionary files for each *.h, *.c and etc. by itself.
Then it could load this dictionary file instead of reparsing source file.
Of course it should make new dictionary file if source file is newer than dictionary.

This should speed up the CC dramatically.

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Codecompletion using dictionary functionality
« Reply #3 on: July 04, 2007, 12:48:06 am »
pauliusz: Before, there was something called "Cache", which worked more or less like you say, but the I/O overhead of reading the cache actually made it SLOWER than parsing the files. Anyway, the slowdown is not very noticeable right now, except for the class browser building part, and I'm already working on that (in my "code playground" :P ).