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; -*-
|
||||
|
||||
;; Time-stamp: <2020-06-23T02:30:23+0200>
|
||||
;; Time-stamp: <2020-08-03T00:39:43+0200>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
|||
(use-package flycheck-clang-tidy
|
||||
:after (flycheck projectile lsp-ui)
|
||||
:defines (lsp-mode)
|
||||
:functions (flycheck-clang-tidy-setup)
|
||||
:config (progn
|
||||
(defun my/clang-tidy-off ()
|
||||
"Disable c/c++-clang-tidy."
|
||||
|
@ -117,6 +118,7 @@
|
|||
|
||||
(when (executable-find "clang-format")
|
||||
(use-package clang-format
|
||||
:commands (clang-format-buffer)
|
||||
:hook ((c-mode-common
|
||||
. (lambda ()
|
||||
(add-hook 'before-save-hook #'clang-format-buffer nil t))))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user