Hi,
this is pretty interesting.
I would like to help but i have no experience in such work
But if u can direct me i could be of help....
The first thing you need to know is the plugin-structure of C::B, You need to supply many event handlers to catch the event you interested. such as: a project is loaded, so you need to start parsing, or a "ctrl+space" key is pressed, which means the user want to show some suggestion list...
You can look at the source code of any plugin in C::B's source.
Then read the basic structure of the current codecompletion plugin, there are briefly introduced here:
Code Completion Design - CodeBlocksThe very basic thing is that the parser just do "syntax analysis" on each source file, and correct enough information.
Then, To use clang, you need to know how to use/build clang library, you can build clang which will produce some support libraries. Then try to use the sample code supplied by me, see my original post, in attachments, I has a sample code to do code completion by clang library.
Note: clang library support more things, like tag indexing, cross reference feature, but from the very beginning, all the above instruction will give a basic introduction.
Fell free to ask any question about this.