Skip to content

typester/clang-complete-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clang-complete-helper

Tiny command-line application that helps you to set CFLAGS for emacs-clang-complete-async.

This script automatically scan .xcodeproj directory and show cflags list for editing objective-c source.

Install

go get -u github.com/typester/clang-complete-helper

Setup

This is example emacs setup:

(defun ac-cc-mode-setup ()
  (setq ac-clang-cflags
        (split-string
         (shell-command-to-string (concat (executable-find "clang-complete-helper") " cflags "
                                          (and buffer-file-name
                                               (file-relative-name buffer-file-name))))))
  (setq ac-sources '(ac-source-clang-async))
  (ac-clang-launch-completion-process)
  (yas/minor-mode-on))

(add-hook 'c-mode-common-hook 'ac-cc-mode-setup)

Note: you need to place clang-complete-helper in PATH

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published