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

Easy​Clang​Complete

by niosus ST3

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

Details

Installs

  • Total 11K
  • Win 3K
  • OS X 3K
  • Linux 5K
Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5
Windows 12 25 13 12 11 8 15 16 18 15 19 10 16 11 21 9 15 5 6 10 11 15 14 11 11 14 19 10 25 11 13 21 14 22 22 19 36 22 14 13 9 8 9 10 9 18
OS X 6 9 5 5 5 10 6 4 14 4 21 10 6 5 11 12 12 11 10 12 7 13 7 17 10 6 10 15 12 20 17 10 11 5 9 9 22 14 9 3 6 2 7 8 12 0
Linux 20 29 27 22 23 13 16 20 24 19 30 26 31 16 15 33 20 18 10 16 19 28 24 17 29 26 11 14 19 18 27 28 24 13 14 34 49 32 20 17 12 11 20 23 14 16

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.