Hello, ouille, thanks for the contribution!
Here are some of my comments about the patch:
1, It looks like you forgot to add the file changes of "plugins\codecompletion\resources\settings.xrc" in the patch?
2, About how the add the files to the batch parser(the thread pool), which will parse the files in FIFO(first in first out) mode as they added.
Let's say, some headers files are not included in any translation unit files. Such as a file named "c.h" in my previous post. (
Re: Help on code completion)
How, what I think the way is: first add the translation unit files(the .c or .cpp files) first, and then the header files.
So, we have such sequence:
When parsing a.c, the a.h and b.h will be parsed.
When parsing b.c, no need to parse its included file a.h and b.h, since they are already in symbol tree.
Next, a.h and b.h are just skipped since they are already in the symbol tree.
Last, when we look at c.h, we can't find this header files in the symbol tree, so we parse it.
3, Please note there is an option named "Enable headers code-completion", which means when user hit the "<" after he typed the "#include", the header file names will be prompted for auto suggestion. This is not the same thing was we discussed in this thread.