Vim plugin that use clang for completing C/C++ code.
Questions tagged [clang-complete]
58 questions
4
votes
1 answer
how can the vim script(clang_complete ) complete function ,template?
In the clang_complete.txt(the help file), it shows these in clang_complete-compl_kinds:
2.Completion kinds *clang_complete-compl_kinds*
Because libclang provides a lot of information about completion, there are
some additional kinds…

tengchao wang
- 41
- 3
4
votes
1 answer
vim doesn't appear to find .clang_complete
In trying to setup auto completion for C using clang complete in vim, and so far, when I'm inside a .c file, I kind of get auto completion when I hit ctrl+x,u. However it only displays some symbols.
None of the functions that's in the included…

josef.van.niekerk
- 11,941
- 20
- 97
- 157
4
votes
1 answer
Clang plugin issue
I have installed the plugin clang_complete. I put these settings in my .vimrc:
let g:clang_use_library = 1
let g:clang_auto_select = 0
let g:clang_complete_auto = 1
let g:clang_complete_copen = 1
let…

Vardan Hovhannisyan
- 1,101
- 3
- 17
- 40
4
votes
2 answers
Vim and clang_complete, how to explicitly request to reparse my code
I use Vim with clang_complete for omnicompletion.
The plugin is automatically triggered when I need completion, e.g., after I type . or -> to access an object members or methods (see screenshot below).
The plugin works really nice, however I would…

Vincenzo Pii
- 18,961
- 8
- 39
- 49
3
votes
3 answers
clang_complete and iOS
I recently found out about clang_complete and thought I'd give it a try in MacVim. I'm doing iOS dev and at the beginning I got the UIKit/UIKit.h file not found error like others have experienced.
I'm using Xcode 4.2 with the iOS 5 SDK. I've added…

Stelian Iancu
- 2,462
- 3
- 18
- 28
3
votes
2 answers
clang_complete error: unknown argument: '--std=c++0x'
clang++ version: 2.9
vim version: 7.3
I write my .clang_comple
--std=c++0x
with follow source code test.cc:
int main () {
return 0;
}
And the clang_complete shows
test.cc|| unknown argument: '--std=c++0x'
in the quickfix list.
I try to add…

yoco
- 1,404
- 1
- 14
- 19
3
votes
3 answers
Recompile VIM with Python support for clang_complete
I've been googling this for about an hour now, with alot of people having the same question, although I cannot seem to get my answer. I am trying to make get clang_complete to work, and I know I need Python support in Vim. My compilation of Vim,…

Rice
- 3,371
- 4
- 19
- 23
3
votes
1 answer
clang_complete doesn't complete constructors
Consider this source fragment:
class Z
{
public:
Z(int){}
void foo() {}
};
This works as intended:
int main()
{
Z a(1);
a. // <- at this point, a list of functions appears in a menu
This does not work at all:
Z b // <-…

n. m. could be an AI
- 112,515
- 14
- 128
- 243
2
votes
1 answer
Unable to setup EasyClangComplete for Sublime Text
Recently, I shifted to Sublime text editor from VS Code. In VS code I use C/C++ extension by Microsoft for C++ autocompletion.
I go through the steps given in https://github.com/niosus/EasyClangComplete.
I am able to do the first 2 steps but step 3…

am2505
- 2,194
- 15
- 19
2
votes
1 answer
Vim plugin clang_complete doesn't see *.cc files
I've installed clang_complete plugin using Vundle. Seems to work for *.cpp files (:set omnifunc? gives ClangComplete and autocompletion mostly works as it should), but I'm rather using *.cc and those the plugin seems not to recognise. (:set…

Przemysław Czechowski
- 698
- 6
- 18
2
votes
1 answer
clang complete add path to includes
I have simple question today. I'm using this vim config - https://github.com/gergap/vim
The problem is with clang completion. It works but when I want to add more includes to get better completion then nothing is happening - it won't detect new…

python
- 198
- 1
- 5
- 13
2
votes
2 answers
Vim Editor->clang_complete: no python support available
Case: Testing clang_complete with gVim 7.3
I installed MinGW, then followed the tutorial here to download and compile clang. It compiled for around an hour, then make install. Clang worked. I especially love the error annotation. It's amazing.
Now…

Evdo Cdma
- 45
- 1
- 4
2
votes
2 answers
CMake and clang_complete
I'm wanting to setup my CMakeLists.txt file so that it can generate the .clang_complete file required by the vim plugin clang_complete.
Ordinarily, you would do this by passing a parameter to the python script it supplies with the compiler and all…

AdmiralJonB
- 2,038
- 3
- 23
- 27
2
votes
1 answer
clang_complete - cc_args.py won't generate .clang_complete file
I have setup a simple project to test viability of VIM as C++ complier plus a simple makefile from a tutorial, but I can't seem to generate .clang_complete file from cc_args.py script.
Readme says I should run:
make CC='~/.vim/bin/cc_args.py gcc'…

RedSparrow
- 307
- 2
- 3
- 9
2
votes
1 answer
Setup clang_complete in vim for gtk+-2.0
I'm having some trouble setting up clang_complete to work with gtk+-2.0. For the standard library clang_complete works just great, but I'd like to use it with external libraries like gtk+.
In the directory, where I'm programming, I added a…

timeout
- 121
- 1
- 3