Emacs: Fix flycheck warnings in programming/c++.

This commit is contained in:
tastytea 2020-08-03 00:39:56 +02:00
parent e32acbd18b
commit 5a7baa82c7
1 changed files with 3 additions and 1 deletions

View File

@ -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))))))