User forums > Using Code::Blocks

Code completion - containers

(1/1)

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:


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

--- End code ---

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...

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! :-)

Navigation

[0] Message Index

Go to full version