Emacs: fix clang version extraction.
This commit is contained in:
parent
8ee57b74f6
commit
5906b26237
|
@ -1,6 +1,6 @@
|
|||
;;; common.el --- Common programming settings. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-01-26T01:09:26+0100>
|
||||
;; Time-stamp: <2020-01-26T01:24:11+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -326,7 +326,7 @@ purpose or not wide enough."
|
|||
|
||||
:config
|
||||
;; Add “-clang-tidy” to clangd args if the version supports it.
|
||||
(if (>= (company-clang-version) 9.0)
|
||||
(if (>= (cdr (company-clang-version)) 9.0)
|
||||
(setq lsp-clients-clangd-args
|
||||
'("-compile-commands-dir=build -clang-tidy"))
|
||||
(setq lsp-clients-clangd-args
|
||||
|
|
Loading…
Reference in New Issue
Block a user