Vim doesn't seem to find .clang_complete

When I try to set auto-completion for C using clang complete in vim, and still when I'm inside the .c file, I get auto-completion when I click ctrl+x,u. However, it only displays some characters.

None of the features included in the heading headers appear in the auto-complete popup. It seems that only typedefs are displayed?

enter image description here

The structure of the project is very simple:

$ tree -ap
.
โ”œโ”€โ”€ [-rwxrw-r--]  .clang_complete
โ”œโ”€โ”€ [-rwxrw-r--]  makefile
โ””โ”€โ”€ [drwxrw-r--]  src
    โ””โ”€โ”€ [-rwxrw-r--]  FlightControl.c

1 directory, 3 files

I tried to create a .clang_complete file inside a project folder containing the following:

-I/.../Libraries/xpSDK/CHeaders/XPLM

I double checked the path to XPLM headers and that is correct.

Any ideas on something wrong?

+4
source share
1

libclang , , . , XPLM_API. , . XPLMDefs.h, , libclang Platform not defined! ( , ).

, , , -DLIN .clang_complete .

vim clang_complete, .

+2

All Articles