Skip to content

Falven/Clang-Complete

 
 

Repository files navigation

Clang-Complete

A clang plugin for Sublime Text 3 (MAC OSX / Linux), 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]

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

From package control

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

Installation using Package Control is only support 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:

"settings":
{
    "cc_include_options":
    [
        "-I/headfile_path1",
        "-I/headfile_path2",
        "-I/headfile_path3"
        // ...
    ]
     // ...
}

if "cc_include_options" exists in your project settings, it will override rather than add 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 X
support sublimetext 2 X

About

a auto complete plugin for sublimetext3

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 81.1%
  • Python 18.0%
  • Other 0.9%