Clang-Complete | a auto complete plugin for sublimetext3 | Plugin library
kandi X-RAY | Clang-Complete Summary
kandi X-RAY | Clang-Complete Summary
A clang plugin for Sublime Text 3 (MAC OSX / Linux / Windows), providing: - Auto complete - Syntax diagnostic - Goto definition. Using libclang (llvm 3.5.0).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create a new Enum class .
- Completes completions
- Set an enumeration value .
- Draw error markers .
- Return the declaration for the given list .
- Returns a list of driver options
- Open the definition .
- Check that the enumeration is unique .
- Return a string representation of the enum .
- Convert a list of file names to a CXUnsavedFile object .
Clang-Complete Key Features
Clang-Complete Examples and Code Snippets
Community Discussions
Trending Discussions on Clang-Complete
QUESTION
I have been using YouCompleteMe for a while, but now I want to have also C++ code completion and I can't get it to work.
I followed the build instructions, on the Github page.
This is what I did:
./install.py --clang-completer
I get an error telling me the following:
for file [/Users/moshe/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/../clang_archives/libclang-8.0.0-
x86_64-apple-darwin.tar.bz2]
expected hash: [0900559a7aff8a1156949a53b811d6711f8493938e47f0587c2e5e6a5c4972e8]
actual hash: [e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855]
status: [35;"SSL connect error"]
I tried upgrading curl, openssl with brew upgrade
but nothing works.
I even tried to re-install YouCompleteMe nothing worked, if anyone can please help, thanks!
...ANSWER
Answered 2019-Sep-26 at 00:51Whew I was able to do it but very nasty hack.
YouCompleteMe, downloaded libclang under the clang_archives folder, but the install sequence failed because of a hash mismatch, I tried manually fixing this by editing the YouCompleteMe codebase but I was lost.
I tried doing ./install.py --system-libclang -clang-completer
, but because I was using the system libclang I got a slew of linker errors.
To get around using the installer and getting around using system clang, I simply unarchived the libclang.tar file which gave me a .dylib.
Then I was able do move that archived clang and replace the system clang, under /Applications
.
I ran the command ./install.py --system-libclang -clang-completer
and it built and linked normally!
QUESTION
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:
ANSWER
Answered 2019-Sep-02 at 10:45Follow the Troubleshooting
section in the README of your plugin. It says that the first step is to check completefunc
and omnifunc
when in your C++ buffer, and then to check the output of :messages
. I think that knowing what those settings are at runtime of your Vim would show us what's going on.
If completefunc
isn't set, then there's something going on with one of your settings; the plugin is trying to do what it does, but one of your settings are improperly formatted (or something like that.) The output of :messages
should be able to show you which setting this is, as well.
QUESTION
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 not contain my project settings, such as -D
and -I
flags specific to my dependencies.
Why I want to do this? In order to create a configuration file for the clang-complete vim plugin: https://vim.sourceforge.io/scripts/script.php?script_id=3302
...ANSWER
Answered 2017-Sep-19 at 19:58Can you use message? Here is a sample from a useful script from cmake.
QUESTION
I had installed tern_for_vim and YouCompleteMe for js completion this way.
1 install node
...ANSWER
Answered 2018-Mar-15 at 04:12Unfortunately this is not officially supported by tern. You can see the response in a closed issue
https://github.com/ternjs/tern_for_vim/issues/170
Because the parsing logic for separating HTML and scripts hasn't been implemented. This could be done as a plugin, if you want to take a shot at it, but it's out of scope for this repository.
But then there is another thread on SO which may help you
Using tern_for_vim plugin in HTML files
So best is to include your code in the html through a JS file and then edit the JS file. Else look at some other plugin/IDE environment. I would explore the below option as well
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Clang-Complete
install MINGW-W64 32 (only if you want to compile yourself - binary is included) e.g. from [here](http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/4.8.4/threads-posix/dwarf/i686-4.8.4-release-posix-dwarf-rt_v3-rev0.7z/download)
install [LLVM 3.6.1](http://llvm.org/releases/3.6.1/LLVM-3.6.1-win32.exe)
Install [package control](https://packagecontrol.io/installation)
command+shift + p → install package
Search Clang-Complete → install
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page