Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 1.3 KB

README.md

File metadata and controls

33 lines (21 loc) · 1.3 KB

Company Irony C Headers

MELPA

This package provides a company-mode backend for C/C++ header files that works with irony-mode.

This package is meant to be complementary to company-irony by offering completion suggestions to header files.

Installation

The recommended way to install company-irony-c-headers and its dependencies is through a package manager:

  • Using MELPA

    M-x package-install RET company-irony-c-headers RET
    

Usage

It must be loaded after irony-mode, while the backend should be grouped with company-irony, and before it.

Put the following code in your initialization script:

(require 'company-irony-c-headers)
;; Load with `irony-mode` as a grouped backend
(eval-after-load 'company
  '(add-to-list
    'company-backends '(company-irony-c-headers company-irony)))

Sometimes when the compiler options change, you need to manually reload header completion cache by invoking company-irony-c-headers-reload-compiler-output.