Vim plugin that use clang for completing C/C++ code.
Questions tagged [clang-complete]
58 questions
33
votes
5 answers
clang_complete: where is the libclang.{so,dylib} in OS X?
I looked in the usual places (/usr/lib/,/Developer/usr/lib/,/usr/local/lib), and it isn't there.
If it isn't installed, does anyone know where I can find instructions to install it?
Thanks!
I'm not sure if I should close this, but I found the answer…

Andrew Spott
- 3,457
- 8
- 33
- 59
19
votes
2 answers
clang_complete in Vim
So after playing around with omnicpp, gccsense and clang_complete I couldn't get any of them to work. So I apt-get purge vim-* and tried again to install clang_complete, but without success.
Here's what I do:
Download clang_complete.vmb, move it to…

mishe
- 301
- 1
- 7
- 15
17
votes
1 answer
C-family Semantic Autocompletion Plugins for Vim (C/C++ completion) using Clang (clang_complete, YouCompleteMe)
I am using 64-bit Vim on windows, this version by Haroogan:
+python27
+python33
+huge
I am trying to use clang_complete, so I took the libclang.dll library here and I set up my vimrc correctly. libclang.dll is found.
However when I open a *.cpp…

statquant
- 13,672
- 21
- 91
- 162
13
votes
2 answers
gccsense vs. clang_complete
I've been using omniCppComplete + ctags for a while, and want to make a further improvement on the code completion.
According to the suggestion in here [1], gccsense and clang_complete seems to be alternatives. However, I am not sure which one is…

Ivan Xiao
- 1,919
- 3
- 19
- 30
11
votes
2 answers
Can you search or filter Vim completions?
I am using Vim 8.0 with Python3 and myint/ClangComplete for C/C++ completions. SDL_ suggests every function and type from SDL. Is there any way to limit suggestions to SDL_EventType types, functions returning SDL_Windows, etc.? BidiComplete…

John P
- 1,463
- 3
- 19
- 39
10
votes
4 answers
Where is libclang.so?
I am using Linux Mint and I installed clang_complete using the makefile from Clang Complete, but it does not work. When I open a cpp file, there is an error message:
Loading libclang failed, completion won't be available. Consider setting…

user3476184
- 101
- 1
- 1
- 6
7
votes
3 answers
How to reduce the time of clang_complete search through boost
I like using clang with vim.
The one problem that I always have is that whenever I include boost, clang goes through boost library every time I put "." after a an object name. It takes 5-10 seconds.
Since I don't make changes to boost headers, is…

kirill_igum
- 3,953
- 5
- 47
- 73
6
votes
1 answer
Async code completion for clang_complete
Recently I am using clang_complete to do C++ code completion. It is good and fast for small program but too slow for my case (I am working on large code base and usually one file takes several seconds to compile), even if I used libclang, which can…

Kan Li
- 8,557
- 8
- 53
- 93
6
votes
2 answers
Using neocomplcache and clang_complete?
I'm trying to make clang_complete and neocomplcache to play along nicely. My problem is that when I open a cpp, c, objc or objcpp file I get the following error from neocomplcache
completefunc=ClangComplete^@^ILast set from…

Goles
- 11,599
- 22
- 79
- 140
5
votes
3 answers
clang_complete: Vim autocompletion for iOS
So recently I have been trying to set up a Vim-based iOS workflow.
I found clang_complete, and have set the clang user options in my .vimrc like so
let g:clang_user_options='-fblocks -isysroot…

Sam
- 3,659
- 3
- 36
- 49
5
votes
2 answers
Using clang_complete with OS X frameworks
If I save the following to /tmp/test.cpp:
#include
#include
int main() {
CFStringRef my_string = CFSTR("hello, world!");
std::cout << CFStringGetLength(my_string) << '\n';
}
I can compile this correctly…

irh
- 668
- 5
- 11
5
votes
3 answers
print complete CFLAGS/CXXFLAGS of CMake project
Is it possible to print the complete *CFLAGS and *CXX_FLAGS of a CMake project (of all targets?)?
I tried looking in CMakeCache.txt after configuring and building the project, but all the *C*FLAGS* related variables are almost empty, and anyway do…

fferri
- 18,285
- 5
- 46
- 95
5
votes
4 answers
.clang_complete and CMake?
I'm using CMake to genenerate my Makefile's however I cannot generate the .clang_complete using the standard
make CC='~/.vim/bin/cc_args.py gcc' CXX='~/.vim/bin/cc_args.py g++' -B
nothing gets generated...
the tree structure looks like so
Root
|
…

Pepe
- 405
- 5
- 12
5
votes
1 answer
clang_complete pattern not found for C structs
So I have a very basic C program to try and test clang_complete:
#include
#include
struct xampl {
int x;
};
int main()
{
struct xampl structure;
struct xampl *ptr1;
}
However, every time I try to do structure. or…

Dasun
- 83
- 1
- 9
5
votes
2 answers
clang complete doesn't work
I installed clang_complete for vim,but it doesn't work. For example: When I typed std:: in a c++ file with vim, the bottom of vim's window shows that:
User defined completion (^U^N^P) Pattern not found
How can I solve this?

Da Lin
- 179
- 2
- 9