No description, website, or topics provided.
Go Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
testfiles
.gitignore
README.org
cflags.go
cflags_test.go
main.go
project.go
project_test.go

README.org

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