ReverseFlux

flycheck

Feb 5th, 2017
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. (require 'flycheck-clangcheck)
  2.  
  3. (defun my-select-clangcheck-for-checker ()
  4. "Select clang-check for flycheck's checker."
  5. (flycheck-set-checker-executable 'c/c++-clangcheck
  6. "/path/to/clang-check")
  7. (flycheck-select-checker 'c/c++-clangcheck))
  8.  
  9. (add-hook 'c-mode-hook #'my-select-clangcheck-for-checker)
  10. (add-hook 'c++-mode-hook #'my-select-clangcheck-for-checker)
  11.  
  12. ;; enable static analysis
  13. (setq flycheck-clangcheck-analyze t)
Advertisement
Add Comment
Please, Sign In to add comment