xavierd / clang_complete

Vim plugin that use clang for completing C/C++ code.
http://www.vim.org/scripts/script.php?script_id=3302
1.96k stars 308 forks source link

Pattern not found for some standard libraries and only pick the first include #569

Open Olivier-Delierre opened 5 years ago

Olivier-Delierre commented 5 years ago

Hello,

I've some issues with this plugin on my Vim. I've installed it with the Vundle plugin manager for Vim, and linked the good folder for clang libs.

For the first issue, when I insert several includes on the top of my .cpp files, only the first is used to autocomplete the std:: word. So, if I include cmath as first, only cmath's functions will appears, and if I include iostream as first, only functions as cout or cin appears, and not cos or abs.

Secondly, when I include vector or map for example, I always finished with a pattern not found when I try to autocomplete a vector object, and the autocomplete menu doesn't show the vector class when I type std:: unlike with the iostream header for example.

Any suggestions about this ?

Olivier

fhausman commented 5 years ago

Hi

I've noticed similar issue as @Olivier-Delierre. When I configured clang_complete it doesn't suggest function names such as push_back, size etc. on vector objects. I'm not sure if it is capable of doing so but I was expecting such behaviour.