justmao945 / vim-clang

Clang completion plugin for vim
ISC License
358 stars 47 forks source link

vim-clang filters out `sizeof` #145

Open michael-lehn opened 1 year ago

michael-lehn commented 1 year ago

Say I have a file foo.c

int six;
int main(void) {
    return si

Running cat hello.c | clang -fsyntax-only -Xclang -code-completion-macros -Xclang -code-completion-at=-:3:14 -xc - will give

PREFERRED-TYPE: int
COMPLETION: six : [#int#]six
COMPLETION: Pattern : [#size_t#]sizeof(<#expression-or-type#>)

However, vim-clang seems to filter out the Pattern result. So I get six as only match.