richard1122 / vscode-youcompleteme

YouCompleteMe for VSCode
https://marketplace.visualstudio.com/items?itemName=RichardHe.you-complete-me
MIT License
53 stars 8 forks source link

No completition for typdefs ? #36

Closed Glog78 closed 7 years ago

Glog78 commented 7 years ago

Here is a small example ->

https://pastebin.com/17Kuwg71

hello:: doesn't bring up a completition even the the typedef is defined. hello. does work even i need to do a compile (a save wasn't enough)

richard1122 commented 7 years ago

Hi, I'm not very familiar with c++ shared_ptr class. When I'm trying your code, there are some errors. It says shared_ptr is not defined, and I 've added "#include " And you should add an ; after class ups definition.

For the hello:: completion. I guess hello is an class instance, how could it produce any completion for :: operator? When I'm using ., it works fine: 2017-05-26 14-01-40

And after I define an ptr instance inside ups class, It will produce completion results.

2017-05-26 14-02-15