Golevka / emacs-clang-complete-async

An emacs plugin to complete C and C++ code using libclang
359 stars 71 forks source link

Does not show completions on member variables/functions for pointer or reference #22

Open ameyp opened 11 years ago

ameyp commented 11 years ago

With brianjcj's version:

g_sync

With this version:

g_async

The clang-complete buffer simply contains a '$' (without the quotes).

I've also noticed that local and member variable completions don't work completely (only a subset of all possible completions is shown) on large codebases.

elemakil commented 11 years ago

Hey, I'm having a similar problem. Could you post your ac-clang config? In my case I have boiled it down to whether ac-source-clang-async is the only ac-source for that buffer.

When I use this code:

(setq ac-sources (append '(ac-source-clang-async ac-source-yasnippet) ac-sources))

No completion will occur and the *clang-complete* contains a dollar sign. Using this code:

(setq ac-sources '(ac-source-clang-async))

everything works fine. Please check whether this is true for you because if it is not I'll open a new issue for my problem.