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

Easy​Clang​Complete

by niosus ST3

C/C++ autocompletion in Sublime Text 3 for human beings

Details

Installs

  • Total 7K
  • Win 2K
  • OS X 2K
  • Linux 3K
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 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10
Windows 10 16 12 20 10 19 9 10 6 12 15 7 14 12 14 4 9 12 21 11 9 6 10 2 10 14 20 14 6 16 8 18 11 12 13 11 15 8 6 18 14 18 9 5 11 10
OS X 6 7 8 5 4 9 10 7 7 2 9 5 11 1 7 1 5 5 8 2 9 2 10 13 6 6 3 14 6 6 5 9 9 10 3 8 6 6 10 7 6 8 3 8 7 21
Linux 13 16 6 17 11 24 15 16 15 8 14 11 20 14 19 10 11 17 21 14 15 18 11 9 23 18 16 14 24 12 7 12 24 19 26 21 9 6 14 23 26 17 23 15 17 28

Readme

Source
raw.​githubusercontent.​com

EasyClangComplete

Sublime Text 3 plugin that offers clang-based auto-completion for C, C++, Objective-C, and Objective-C++.

Example

Simple setup!

You are just three simple steps away!

1. Install this plugin

2. Install clang

  • Ubuntu : sudo apt-get install clang
  • OSX : ships clang by default. You are all set!
  • Windows : install the latest release from clang website.
  • Other Systems : use your package manager or install from clang website.
  • clang website: http://llvm.org/releases/download.html

3. Configure your includes

Using CMake?

Plugin will run cmake on a proper CMakeLists.txt in your project folder and will use information from it to complete your code out of the box. You're all set!

Have a compilation database?

Plugin will search for a compilation database compile_commands.json in the project folder and will load it to complete your code.

If you want to specify a custom path to a compilation database you can do it in settings:

"flags_sources": [
    {"file": "compile_commands.json", "search_in": "<YOUR_PATH>"},
]

None of the above?

You will need a little bit of manual setup for now. Please see the following instructions.

You're all set!

For more information please refer to the GitHub page.