During completion libclang
tries to do its best by ignoring errors to present a user with the longest list of matches. I guess that you don't have XPLM_API
macro defined. As it is used to declare every function in headers, you won't see any functions in completion list. Looking at defines in XPLMDefs.h
I think that libclang
gets Platform not defined!
error (maybe even several times).
It should work if you define your platform for completion, I did this by adding -DLIN
to .clang_complete
file and completion works now.
So it doesn't seem to be an issue of vim or clang_complete
, though it'd be nice to have a warning in such case.