Developer forums (C::B DEVELOPMENT STRICTLY!) > CodeCompletion redesign
Clang CC
yvesdm3000:
I just pushed the changes for the tokendatabase to make 'goto implementation' work much better to the 'staging' branch so whoever wants to test is free to do so.
The tokendatabase is however not yet persistent so each time you load a project, the plugin will do a complete reindexation.
What prohibits me to implement this persistence is that the tokendatabase should be linked to a project and not the workspace because you could (theoretically) have 2 separate projects each have a class that share the name but not the implementation. In further stages when can start renaming symbols this might even become more important.
Yves
MortenMacFly:
--- Quote from: yvesdm3000 on May 02, 2016, 09:02:50 am ---What prohibits me to implement this persistence is that the tokendatabase should be linked to a project and not the workspace because you could (theoretically) have 2 separate projects each have a class that share the name but not the implementation.
--- End quote ---
Please keep in mind that it could also be that two targets in a project share the same class with different implementations. there are quite some projects around where that is the case...
yvesdm3000:
Are you referring to having a #define set on a target that selects some class/interface/code?
If that's the case, that is just covered by clang itself and me passing its compile options. I also reparse the translation units when configuration options are changed. I should however check if this is also done when the target is changed, so good point.
If it's something else that I'm not aware of, please specify.
Yves
yvesdm3000:
I just landed the persistent tokenindex database, split out per loaded project.
It's pushed on the "staging" branch right now. I'll leave it stabilize for now until I merge it onto the master branch.
Next step will be the class-browser, but I need to figure out how I can get this information out of Clangs AST.
Yves
MortenMacFly:
--- Quote from: yvesdm3000 on May 14, 2016, 07:40:14 am ---If it's something else that I'm not aware of, please specify.
--- End quote ---
I meant that if you say you'll need a token database per projects I say its better per target. Because the very same reason why you don't do it per workspace also applies to projects due to targets.
If you can manage that differently somehow I am happy.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version