Emacs: Disable flycheck-clang-tidy if clang >= 9 is detected.

This commit is contained in:
tastytea 2020-01-26 02:36:05 +01:00
parent 9264bbe33a
commit c42cb09db7

View File

@ -1,6 +1,6 @@
;;; c++.el --- C++ settings. -*- lexical-binding: t; -*-
;; Time-stamp: <2020-01-20T19:27:36+0100>
;; Time-stamp: <2020-01-26T02:35:47+0100>
;;; Commentary:
@ -14,6 +14,8 @@
:pin melpa
:after (flycheck projectile lsp-ui)
:if (executable-find "clang-tidy")
;; clang-tidy is built into clangd >= 9.
:if (< (cdr (company-clang-version)) 9.0)
:config
(defun my/clang-tidy-off ()
"Disable c/c++-clang-tidy."