Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (require 'flycheck-clangcheck)
- (defun my-select-clangcheck-for-checker ()
- "Select clang-check for flycheck's checker."
- (flycheck-set-checker-executable 'c/c++-clangcheck
- "/path/to/clang-check")
- (flycheck-select-checker 'c/c++-clangcheck))
- (add-hook 'c-mode-hook #'my-select-clangcheck-for-checker)
- (add-hook 'c++-mode-hook #'my-select-clangcheck-for-checker)
- ;; enable static analysis
- (setq flycheck-clangcheck-analyze t)
Advertisement
Add Comment
Please, Sign In to add comment