From df3d3bffd308e983e39a2ca5ba2b090f308c15d4 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 4 Mar 2021 15:06:13 +0100 Subject: [PATCH] Add flycheck-clang-tidy --- .config/emacs/config.org | 45 ++++++++++++++++++++++------------------ 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 28c960a..6a8cef0 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -497,27 +497,32 @@ Autocomplete packages (includes code completion and snippets). On the fly syntax checking. #+BEGIN_SRC emacs-lisp - (use-package flycheck - :defer t - :hook - ((c-mode-common - emacs-lisp-mode - latex-mode - org-mode - php-mode - shell-mode - shell-script-mode) - . flycheck-mode) - :config - (setq flycheck-clang-language-standard "c++17") - (setq flycheck-gcc-language-standard "c++17")) +(use-package flycheck + :defer t + :hook + ((c-mode-common + emacs-lisp-mode + latex-mode + org-mode + php-mode + shell-mode + shell-script-mode) + . flycheck-mode) + :config + (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 - :after flycheck - :config - (add-to-list 'flycheck-checkers 'flycheck-emacs-lisp-package) - (flycheck-package-setup)) +;; 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