Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No "autocompletion" support in QtCreator with auto variable

I am testing different IDE's and QtCreator was my favorite so far but it seems that there is no support for the auto keyword?

enter image description here

I am new to c++ but bot variants should be the same right? (Maybe unique pointer) But I get no autocompletion with the variable o1

Did I just make a mistake or has QtCreator no support for auto?

like image 425
Maik Klein Avatar asked Jan 05 '13 17:01

Maik Klein


1 Answers

The problem is most likely not the auto keyword:-)

Creator still has quite a few problems with templates as the parser is taking shortcuts. There is work in progress to fix that by using the clang parser instead. But since that does not do shortcuts it is way slower than the current one, so there is additional work needed to either speed up clang for the IDE use-case, add some kind of caching of the code model to Creator (currently creator does not store any information about it, so there are never any issues with caches being outdated, etc.) or use the current parser first and then refine the code model later with clang.

like image 140
Tobias Hunger Avatar answered Nov 13 '22 21:11

Tobias Hunger