Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Clang Complete new try?
koonschi:
Hello,
I was thinking about the clang complete plugin, and I decided it was time to show that plugin some love. I guess I don't have to tell you how powerful libclang is and what great benefits codeblocks could have using clang for code completion, refactoring etc.
I know that there is already a Clang plugin and I was thinking of extending it at first, but then I looked at the code and it wasn't really easy to read and understand as there were next to no comments and the whole structure of the plugin wasn't very clear to me either.
Now, as it seems to be working (a little at least as I have seen from the original topic of the plugin (http://forums.codeblocks.org/index.php/topic,15521.0.html), I thought of reusing code of this PlugIn to create a new one or refactoring it and then extending it.
I'd like to create a cleaner, well commented version of this plugin that might be delivered with later releases of codeblocks.
On the long term, working on this would not only include code completion, but also a lot of refactoring options. I see huge potential in this.
Now, before I start, there are a few things I want to have clarified first:
Would this be appreciated?
Are there currently similar plans for code completion (i.e. would I do redundant work)?
I guess it could make codeblocks slower, but add a lot of features. What's the opinion on this of the rest of the community?
Would maybe anybody else be interested in taking a serious approach to this, too?
I will not be able to start working on this at once, as I have a lot of other things going on, too. But if the response to this proposal is good, I'd take some time to really dig into libclang and extend this plugin.
Let me know what you think.
Koonschi
ollydbg:
--- Quote from: koonschi on May 15, 2013, 10:58:54 am ---Would this be appreciated?
--- End quote ---
Yes, surely using clang code completion will give correct code suggestion list, as you may know, currently, our parser in CC does not handle code(c++ template code)very well.
--- Quote ---Are there currently similar plans for code completion (i.e. would I do redundant work)?
--- End quote ---
The work in ClangComplete plugin is one year ago, currently I see no body was working on this plugin.
--- Quote ---I guess it could make codeblocks slower, but add a lot of features. What's the opinion on this of the rest of the community?
--- End quote ---
Look at CodeLite IDE, it already have clang code completion.
--- Quote ---Would maybe anybody else be interested in taking a serious approach to this, too?
--- End quote ---
I personally do not have much time on playing with clang, but I can be a tester if you go ahead. Thanks.
oBFusCATed:
--- Quote from: koonschi on May 15, 2013, 10:58:54 am ---Let me know what you think.
--- End quote ---
The first thing that should be done is improving the C::B's SDK in regard to CC.
Currently it is made with the CC plugin in mind and it is not generic. Writing the plugin probably is not that hard.
But changing the API is and this is what stops me from doing any work in this regard.
Alpha:
I will probably have time to help this summer.
Another thing to keep in mind, is that other tools can benefit from Clang's knowledge, for example semantic highlight. An idea is to create a single parser module (Clang), and allow multiple plugins to communicate with it.
oBFusCATed:
--- Quote from: Alpha on May 15, 2013, 04:28:58 pm ---for example semantic highlight.
--- End quote ---
As you know semantic highlight improvement is limited more by the editor than the parser.
--- Quote from: Alpha on May 15, 2013, 04:28:58 pm ---An idea is to create a single parser module (Clang), and allow multiple plugins to communicate with it.
--- End quote ---
This is why I'm saying we need changes to the SDK.
Navigation
[0] Message Index
[#] Next page
Go to full version