-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to complete loop constructs #553
Comments
clang_complete has never completed any loops, it completes identifiers like names of variables, types, macros and functions. |
Thanks.....But what does the "loop constructs" here refer to?
|
I must be wrong then, haven't used the plugin for a long time. It seems to match doxygen, but I don't remember how to trigger it (maybe there shouldn't be any prefix at all?). |
Triggering code completion without any prefix doesn't work either.It just lists out a long list of all the possible selections. The option
It seems my Clang is able to complete code patterns, I doubt if clang_complete still provides code pattern completion now. |
Thank you for your excellent plugin!
I'm using Ubuntu17.10 with VIM 8 ,Clang 4.0.1 .After testing out all the features I found it unable to complete loop constructs.
This is my configurations in ~/.vimrc :
When I open a C source file and check
let g:clang_complete_patterns
It turns out :
g:clang_complete_patterns #1
I also checked
let g:clang_complete_lib_flags
and it seemed no problem as well
g:clang_complete_lib_flags #3
But when I type
for<C-X><C-U>
,expecting clang_complete to complete the whole loop construct, it reports "Pattern not found" and my quickfix list shows nothing wrong.The same problem occurs when I tries the while loop and the do-while loop.This has been confusing me for a few days, but I haven't got any idea of what's going wrong.
So what possibly caused the failure of the completion of code patterns? Are there any prerequisites to completing a loop construct?
BTW,the
g:clang_trailing_placeholder
option doesn't seem to work as well, but it can complete snippets like function parameters.So I don't know whether my problem is related to the snippet engine(I'm using 'clang_complete' as my snippet engine as default).The text was updated successfully, but these errors were encountered: