Browse Source

Add flycheck-clang-tidy

master
Riyyi 4 years ago
parent
commit
df3d3bffd3
  1. 11
      .config/emacs/config.org

11
.config/emacs/config.org

@ -497,7 +497,7 @@ Autocomplete packages (includes code completion and snippets).
On the fly syntax checking.
#+BEGIN_SRC emacs-lisp
(use-package flycheck
(use-package flycheck
:defer t
:hook
((c-mode-common
@ -512,12 +512,17 @@ On the fly syntax checking.
(setq flycheck-clang-language-standard "c++17")
(setq flycheck-gcc-language-standard "c++17"))
;; For .el files which are intended to be packages
(use-package flycheck-package
;; For .el files which are intended to be packages
(use-package flycheck-package
:after flycheck
:config
(add-to-list 'flycheck-checkers 'flycheck-emacs-lisp-package)
(flycheck-package-setup))
(use-package flycheck-clang-tidy
:after flycheck
:hook (flycheck-mode . flycheck-clang-tidy-setup)
:config (setq flycheck-clang-tidy-extra-options "--format-style=file"))
#+END_SRC
**** LSP

Loading…
Cancel
Save