Emacs: Fix flycheck warnings in programming/c++.
This commit is contained in:
parent
e32acbd18b
commit
5a7baa82c7
|
@ -1,6 +1,6 @@
|
||||||
;;; c++.el --- C++ settings. -*- lexical-binding: t; -*-
|
;;; c++.el --- C++ settings. -*- lexical-binding: t; -*-
|
||||||
|
|
||||||
;; Time-stamp: <2020-06-23T02:30:23+0200>
|
;; Time-stamp: <2020-08-03T00:39:43+0200>
|
||||||
|
|
||||||
;;; Commentary:
|
;;; Commentary:
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@
|
||||||
(use-package flycheck-clang-tidy
|
(use-package flycheck-clang-tidy
|
||||||
:after (flycheck projectile lsp-ui)
|
:after (flycheck projectile lsp-ui)
|
||||||
:defines (lsp-mode)
|
:defines (lsp-mode)
|
||||||
|
:functions (flycheck-clang-tidy-setup)
|
||||||
:config (progn
|
:config (progn
|
||||||
(defun my/clang-tidy-off ()
|
(defun my/clang-tidy-off ()
|
||||||
"Disable c/c++-clang-tidy."
|
"Disable c/c++-clang-tidy."
|
||||||
|
@ -117,6 +118,7 @@
|
||||||
|
|
||||||
(when (executable-find "clang-format")
|
(when (executable-find "clang-format")
|
||||||
(use-package clang-format
|
(use-package clang-format
|
||||||
|
:commands (clang-format-buffer)
|
||||||
:hook ((c-mode-common
|
:hook ((c-mode-common
|
||||||
. (lambda ()
|
. (lambda ()
|
||||||
(add-hook 'before-save-hook #'clang-format-buffer nil t))))))
|
(add-hook 'before-save-hook #'clang-format-buffer nil t))))))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user