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

Optional arguments are supported in completion. #448

Closed DroZ-hun closed 9 years ago

DroZ-hun commented 9 years ago

Optional parameters were not present in completion menu. This change adds them in this format: foo(int a, int b=?) It would be great if it would be possible to print the exact value instead of '?', but this is better then nothing. Snippet can also contain default argument if g:clang_complete_optional_args_in_snippets is set to 1.

xaizek commented 9 years ago

Thanks!

DroZ-hun commented 9 years ago

You are welcome!

wangjihu commented 7 years ago

hi ,, how to print the exact value instead of '?' in the completion menu ??? thanks very much...

DroZ-hun commented 6 years ago

Hi wangjihu, sorry for the late response, if you are still interested, then if you use newer clang library, then the default value gets printed as well.