undefined

bokuweb.me

Emacsで保存時にcppcheckを実行する

メモです。 http://sourceforge.jp/projects/sfnet_cppcheck/ よりcppcheckをダウンロード、展開後、パスを通します。

pckage.elよりflymake-easy.el、flymake-cppcheck.elをインストール。
helmでエラーを見るためhelm-flymakeもインストール。

;; ------------------------------------------------------------------------
;; @ cppchek.el
;; https://github.com/senda-akiha/flymake-cppcheck
(require 'flymake-cppcheck)
(add-hook 'c-mode-hook 'flymake-cppcheck-load)

(custom-set-variables
'(flymake-cppcheck-enable "all"))

(require 'helm-flymake)

結果。

f:id:bokuweb:20150225214307j:plain

わーい。なんかwarningがnilになってるけどひとまずいいや。