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

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.