Parse " (Hidden)" and cope with it.

llvm-svn: 112265
This commit is contained in:
Dan Gohman 2010-08-27 15:16:09 +00:00
parent 7e64c985fb
commit fa4a4705f9
1 changed files with 7 additions and 0 deletions

View File

@ -155,6 +155,13 @@ function! ClangComplete(findstart, base)
let l:value = l:value[:l:spacecolonspace-1]
endif
" Chop off " (Hidden)", if present, and move it to the menu.
let l:hidden = stridx(l:value, " (Hidden)")
if l:hidden != -1
let l:menu .= " (Hidden)"
let l:value = l:value[:l:hidden-1]
endif
" Handle Pattern. TODO: Make clang less weird.
if l:value == "Pattern"
let l:value = l:menu