Questions tagged [clang-complete]

Vim plugin that use clang for completing C/C++ code.

58 questions
2
votes
1 answer

Not able to hide <# and #> with parameters for clang_snippets=1 with clang_complete

I've set this on my .vimrc: let g:clang_snippets=1 let g:clang_snippets_engine='clang_complete' let g:clang_conceal_snippets=1 set conceallevel=2 concealcursor=inv I don't know how conceal is expected to work, maybe the clang_complete's docs should…
oblitum
  • 11,380
  • 6
  • 54
  • 120
2
votes
0 answers

How to get overloaded functions in autocomplete window in Vim using the clang_complete plugin?

I'm new to vim and I have installed clang_complete with default settings and using it for C++. I am able to use the autocomplete but whenever there are overloaded functions, I can only see one of them in the autocomplete window (which opens when…
user803563
  • 408
  • 3
  • 11
1
vote
2 answers

How to improve the completion speed of clang_complete?

I'm using the plugin clang_complete in Vim. The plugin could complete C++ STL accurately. But its completion speed is unacceptable. Is there any way to improve the clang_complete's completion speed? update:Yesterday I found this,and now the…
hbxtght
  • 89
  • 2
  • 7
1
vote
0 answers

clang_complete dosen't give suggestions

I was trying to set up plugin clang_complete for vim. I have cloned repository from its page on github to directory ~/.vim. Then I typed there make install and I had got : vim clang_complete.vmb -c 'so %' -c 'q' I have set path to libclang and…
Hassan
  • 75
  • 6
1
vote
1 answer

Why does clang_complete in VIM give incomplete completion?

I am new to VIM and clang_complete. I managed to install clang_complete and it seems to work, but the completions are somehow not what I expect. For example, I looked at a tutorial and expect a behaviour like in this animated…
phinz
  • 1,225
  • 10
  • 21
1
vote
0 answers

make clang complete autofill header files - Is it possible?

Is there a way for clang_complete to display a popup when I am writing my includes say for example #include <(popup should open) #include I created a file called .clang_complete that has the location to the header…
Rajeshwar
  • 11,179
  • 26
  • 86
  • 158
1
vote
1 answer

Installing clang_complete for vim on Ubuntu

I'm having trouble installing the clang_complete plugin for vim on Ubuntu. I built vim from source to enable python support, and I used vim --version to confirm that it has the following features enabled: +python/dyn +python3/dyn I have my…
djwbrown
  • 1,091
  • 1
  • 11
  • 15
1
vote
0 answers

Building from the command line with xcodebuild results in code sign error

I can build from xcode just fine, but not from the command line using xcodebuild. I'm trying to set up vim and some plugins like clang_complete. I need the output from the command line build to put in a .clang_complete file, etc. Here is my error $…
fontno
  • 6,642
  • 6
  • 36
  • 43
1
vote
2 answers

vim clang_complete "-- User defined completion (^U^N^P) Pattern not found"

I'm new to vim and I'm trying to get code completion to work. I'm using clang_complete and vim-cmake-project. I open my project by typing :CMake projectdirectory It opens my project and I can select which file I want to open but when I try to…
Steve Butcher
  • 91
  • 1
  • 2
  • 9
1
vote
0 answers

vim clang_complete VIo4231.tmp missing

I installed the clang_complete plugin for vim and whenever the code completion has to come, it gives me this error(when setting g:clang_complete_copen = 1, so i can see the error) Error detected while processing function…
1
vote
1 answer

clang_complete vim extension not working with STL

I have installed clang and clang_complete on a Linux system. I added the following lines to my .vimrc: let g:clang_user_options='|| exit 0' set completeopt-=preview Auto-completion works for my own code. However, it doesn't work with STL container.…
user500944
0
votes
0 answers

Clang_Complete only works for C standard headers but not C++ standard headers on MacOS

So I have been using NeoVim for some time and installed the clang_complete plugin. It works well with neovim when I am working in C files. It even works for my c++ project files when I add the include directory to the .clang_compete file as…
Amit Adhikari
  • 660
  • 1
  • 5
  • 10
0
votes
1 answer

My clang-complete doesn't run well in my Vim

I installed clang-complete by using Vundle,and downloaded llvm using sudo apt install llvm-4.0, downloaded clang by using sudo apt install libclang-4.0.Here is my .vimrc: let g:clang_complete_auto=1 " automatically complete after -> . :: let…
TangYida
  • 3
  • 1
0
votes
1 answer

Does clang_complete in vim requiers the code to pass clang compilation in order to work?

I'm using neovim as editor and am trying to enable auto-completion for c/c++ code which uses gcc as its compiler. My question is whether the dependency of clang_complete on clang/llvm means that the code should be able to compile under clang. The…
assaf758
  • 15
  • 4
0
votes
1 answer

vim clang_complete strange completing bug

consider this simple code: #include #include using namespace std; vector vec1; //vec1. //completion does not work AND break the completion that used to work if left without semicolon. int main(){ vector
Ark.
  • 81
  • 1
  • 4