News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Code completion - containers

Started by buzz_lightzyear, February 19, 2018, 10:35:04 PM

Previous topic - Next topic

buzz_lightzyear

Hello!

I have a little problem: when I am creating a variable - lets say myVariable the code completion works very fine. When I am typing "myV" - the IDE shows "myVariable" immediately.

But when I am creating a container like:


std::array<int, 3> myArray{1,2,3};


and I am typing "myA" nothing happens... and so when I am typing "myArray." no available functions were shown. :-(

Can someone help me to solve this problem?

Thx! :-)

oBFusCATed

Either the template or the curly brackets are confusing the parser...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

BlueHazzard

The current code completion plugin is not great with template code....

If you like experimenting you can try the Clang code completion:
https://github.com/yvesdm3000/ClangLib/tree/staging

But you have to compile codeblocks by yourself to be able to install this plugin.

If you want to try it i can write a instruction how to do it....

buzz_lightzyear

Hey!

This would be great! :-) I have already installed Clang also for real-time code checking but its not working so far.

Thx! :-)