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

Easy​Clang​Complete

by niosus ST3

:boom: Robust C/C++ code completion for Sublime Text 3

Details

Installs

  • Total 13K
  • Win 4K
  • OS X 3K
  • Linux 6K
Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3
Windows 5 4 10 7 21 16 11 19 12 17 12 15 15 10 10 7 10 25 18 22 14 16 11 12 13 14 20 18 12 7 13 16 18 14 12 13 10 10 17 15 21 22 17 13 19 14
OS X 3 8 5 7 1 11 4 8 6 7 8 12 10 7 7 6 10 12 12 11 13 5 1 9 5 10 5 9 12 5 5 2 8 11 8 11 5 8 8 15 18 10 14 10 8 7
Linux 3 8 16 14 33 13 14 21 13 13 14 19 20 16 12 10 8 12 26 24 21 16 12 15 14 19 21 29 20 18 16 23 18 20 23 28 16 19 28 28 23 33 25 21 23 26

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.