7

GitHub - hotpxl/company-irony-c-headers: Company mode backend for C/C++ header f...

 2 years ago
source link: https://github.com/hotpxl/company-irony-c-headers
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Company Irony C Headers

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK