Add flycheck-clang-tidy
This commit is contained in:
@@ -497,7 +497,7 @@ Autocomplete packages (includes code completion and snippets).
|
|||||||
On the fly syntax checking.
|
On the fly syntax checking.
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package flycheck
|
(use-package flycheck
|
||||||
:defer t
|
:defer t
|
||||||
:hook
|
:hook
|
||||||
((c-mode-common
|
((c-mode-common
|
||||||
@@ -512,12 +512,17 @@ On the fly syntax checking.
|
|||||||
(setq flycheck-clang-language-standard "c++17")
|
(setq flycheck-clang-language-standard "c++17")
|
||||||
(setq flycheck-gcc-language-standard "c++17"))
|
(setq flycheck-gcc-language-standard "c++17"))
|
||||||
|
|
||||||
;; For .el files which are intended to be packages
|
;; For .el files which are intended to be packages
|
||||||
(use-package flycheck-package
|
(use-package flycheck-package
|
||||||
:after flycheck
|
:after flycheck
|
||||||
:config
|
:config
|
||||||
(add-to-list 'flycheck-checkers 'flycheck-emacs-lisp-package)
|
(add-to-list 'flycheck-checkers 'flycheck-emacs-lisp-package)
|
||||||
(flycheck-package-setup))
|
(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
|
#+END_SRC
|
||||||
|
|
||||||
**** LSP
|
**** LSP
|
||||||
|
|||||||
Reference in New Issue
Block a user