ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Clang-Complete

by lvzixun ST3 Mac

a auto complete plugin for sublimetext3

Labels Clang, Completion, C, C++, OC

Details

Installs

  • Total 5K
  • Win 26
  • Mac 5K
  • Linux 28
May 10 May 9 May 8 May 7 May 6 May 5 May 4 May 3 May 2 May 1 Apr 30 Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 3 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Clang-Complete

A clang plugin for Sublime Text 3 (MAC OSX / Linux / Windows), providing: - Auto complete - Syntax diagnostic - Goto definition

Using libclang (llvm 3.5.0).

Install the Plugin

From git repository

Note: To determine the path to Sublime Text 3 Packages directory, start Sublime Text 3, Choose menu Preferences -> Browse Packages

$ cd <sublime-text-3 Packages directory>  # see note above
$ git clone https://github.com/lvzixun/Clang-Complete.git
$ cd Clang-Complete
$ make [linux / windows]

On Ubuntu, $ make linux, On Mac OSX, run the default $ make.

Windows prerequisites
  1. install MINGW-W64 32 (only if you want to compile yourself - binary is included) e.g. from here
  2. install LLVM 3.6.1

From package control

  1. Install package control
  2. command+shift + p -> install package
  3. Search Clang-Complete -> install

Installation using Package Control is only supported on Mac.

Configuration

Global options can be set in <sublime-text-3 Packages directory>/clang-complete/cc.sublime-settings file. Header files can be included in the include_options section.

Alternatively, header files can also be included from the Sublime Text 3 <name>.sublime-project files by adding the cc_include_options subsection to the settings section in your <name>.sublime-project file:

Error: language “.js” is not supported
"settings":
{
    "cc_include_options":
    [
        "-I/headfile_path1",
        "-I/headfile_path2",
        "-I/headfile_path3"
        // ...
    ]
     // ...
}

Example settings for Windows:

Error: language “.js” is not supported
"settings":
    {
        "cc_include_options":
        [
            "-isystem", "C:\\MinGW\\i686-w64-mingw32\\include",
            "-isystem", "C:\\MinGW\\i686-w64-mingw32\\include\\c++",
            "-isystem", "C:\\MinGW\\i686-w64-mingw32\\include\\c++\\tr1",
            "-isystem", "C:\\MinGW\\i686-w64-mingw32\\include\\c++\\i686-w64-mingw32",
            "-isystem", "C:\\LLVM\\lib\\clang\\3.6.1\\include",
            "-DBOOST_USE_WINDOWS_H"
        ]
    }

if "cc_include_options" exists in your project settings, it will merge to the "include_options" defined in cc.sublime-settings.

Preview

Donate

Paypal

alipay支付宝账号: lvzixun@gmail.com

TODO LIST

feature status
support mac osx done
support linux done
support window done
support sublimetext 2 X