clang-complete

How to improve the completion speed of clang_complete?

泪湿孤枕 提交于 2019-12-24 09:00:23
问题 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 omnicppcomplete could basically meet my need ,so I decided to continue to use omnicppcomplete.vim. Thak you for your answers!! 回答1: Well i heard, that using libclang.so instead of clang executable is much faster. However for reliable completion, you need

Using clang_complete with OS X frameworks

你说的曾经没有我的故事 提交于 2019-12-21 16:51:11
问题 If I save the following to /tmp/test.cpp: #include <CoreServices/CoreServices.h> #include <iostream> int main() { CFStringRef my_string = CFSTR("hello, world!"); std::cout << CFStringGetLength(my_string) << '\n'; } I can compile this correctly with !clang++ -framework CoreServices % , however clang_complete can't complete anything from CoreServices. The docs say I should place compiler options in a .clang_complete file (in this case I'm using /tmp/.clang_complete), however everything I've

gccsense vs. clang_complete

末鹿安然 提交于 2019-12-20 09:38:39
问题 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 better. Any idea on their performance? Thanks! Update: After I tried clang_complete, I found the completion speed extremely unacceptable. I then tried it using libclang.dylib, which speeds up a lot but still make one feels lagging. I think I should

clang_complete in Vim

送分小仙女□ 提交于 2019-12-18 11:52:52
问题 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 my fresh, clean .vim dir and execute vim clang_complete.vmb -c 'so %' -c 'q' . Paste this into my .vimrc: syntax on set number filetype plugin on let g:clang_user_options='|| exit 0' let g:clang_complete_auto = 1 let g:clang_complete_copen = 1

clang_complete in Vim

你。 提交于 2019-12-18 11:52:25
问题 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 my fresh, clean .vim dir and execute vim clang_complete.vmb -c 'so %' -c 'q' . Paste this into my .vimrc: syntax on set number filetype plugin on let g:clang_user_options='|| exit 0' let g:clang_complete_auto = 1 let g:clang_complete_copen = 1

CMake and clang_complete

不羁的心 提交于 2019-12-11 03:24:28
问题 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 of the parameters for compilation. Note that I am omitting the actual directory cc_args.py is in to save on space. cc_args.py gcc test.c -o test -I~/IncludeDirs/ You can also do this during the make phase... make CC='cc_args.py gcc' CXX='cc_args.py

clang_complete: Vim autocompletion for iOS

China☆狼群 提交于 2019-12-09 13:05:28
问题 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 /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300' as described here: http://www.zenskg.net/wordpress/?p=199#comment-229 and added a few framework/header/lib paths. I'm not going to post the whole line because it is huge. So I

Using clang_complete with OS X frameworks

巧了我就是萌 提交于 2019-12-04 08:29:17
If I save the following to /tmp/test.cpp: #include <CoreServices/CoreServices.h> #include <iostream> int main() { CFStringRef my_string = CFSTR("hello, world!"); std::cout << CFStringGetLength(my_string) << '\n'; } I can compile this correctly with !clang++ -framework CoreServices % , however clang_complete can't complete anything from CoreServices. The docs say I should place compiler options in a .clang_complete file (in this case I'm using /tmp/.clang_complete), however everything I've tried so far results in test.cpp|| unknown argument: '-framework' appearing in the quick fix window. What

clang complete doesn't work

拥有回忆 提交于 2019-12-01 19:24:13
问题 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? 回答1: The common solution to this appears to be to add: let g:clang_user_options='|| exit 0' to your .vimrc file. 回答2: This problem was solved at the issue #178. This was in truth a problem with Clang, I've opened a bug report and it was promptly solved. Also, I invite you

clang_complete in Vim

北城以北 提交于 2019-11-30 04:48:56
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 my fresh, clean .vim dir and execute vim clang_complete.vmb -c 'so %' -c 'q' . Paste this into my .vimrc: syntax on set number filetype plugin on let g:clang_user_options='|| exit 0' let g:clang_complete_auto = 1 let g:clang_complete_copen = 1 Create a typical example #include <iostream> #include <string> int main() { std:: (I get: User defined