When you say ptr->
you mean ptr1->
right?
I have only two strings in my .vimrc
let g:clang_complete_copen=1
let g:clang_hl_errors=1
and your example works fine for me. Make sure you have .clang_complete file with valid include paths (see :help clang_complete
for example file). Try to debug clang completer by set up variable let g:clang_debug=1
. And read this thread maybe it help you.