https://github.com/pfultz2/clangcomplete
Clang completion for sublime
https://github.com/pfultz2/clangcomplete
Last synced: 8 months ago
JSON representation
Clang completion for sublime
- Host: GitHub
- URL: https://github.com/pfultz2/clangcomplete
- Owner: pfultz2
- Created: 2013-06-02T05:25:52.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2018-12-12T19:12:17.000Z (about 7 years ago)
- Last Synced: 2025-04-12T12:42:35.655Z (11 months ago)
- Language: C++
- Size: 165 KB
- Stars: 110
- Watchers: 14
- Forks: 17
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ClangComplete
=============
Description
-----------
Clang completion for Sublime Text 3. Additionally, it provides diagnostics and some simple navigation capabilites.
Installation
------------
First, clone this repo into your sublime packages folder(it doesn't use Package Control). Then cd into the `complete` directory and type:
make
This will build the `complete.so` binary. It requires the development version of Clang to build(the package `libclang-dev` on debian-based distros). To get the appropriate development package on OS X, install LLVM via Homebrew:
brew install --with-clang --with-all-targets --with-rtti --universal --jit llvm
Usage
-----
ClangComplete provides code completion for C, C++, and Objective-C files. To figure out the compiler flags needed to parse the file, ClangComplete looks into the `build` directory in the project folder for the cmake build settings. If the build directory is placed somewhere else the `build_dir` can be set to the actual build directory. Also if cmake is not used, options can be manually set by setting the `default_options` setting.
ClangComplete also shows diagnostics whenever a file is saved, and provides `Goto Definition` functionality. Here are the default shortcuts for ClangComplete:
| Key | Action |
|--------------|------------------|
| alt+d, alt+d | Go to definition |
| alt+d, alt+c | Clear cache |
| alt+d, alt+t | Show type |
Support
-------
[Donate](https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=HMB5AGA7DQ9NS&lc=US&item_name=Donation%20to%20clang%20complete&button_subtype=services¤cy_code=USD&bn=PP%2dBuyNowBF%3abtn_paynow_LG%2egif%3aNonHosted)