2018-03-20 21:19:37 -04:00
|
|
|
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
|
|
;;; lang/cc/doctor.el
|
2018-03-12 13:16:16 -04:00
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(assert! (or (not (modulep! +lsp))
|
|
|
|
(modulep! :tools lsp))
|
2019-04-22 03:10:25 -04:00
|
|
|
"This module requires (:tools lsp)")
|
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(assert! (or (not (modulep! +tree-sitter))
|
|
|
|
(modulep! :tools tree-sitter))
|
2021-10-19 19:26:26 +01:00
|
|
|
"This module requires (:tools tree-sitter)")
|
|
|
|
|
2019-02-27 12:49:33 +05:30
|
|
|
(when (require 'rtags nil t)
|
|
|
|
;; rtags
|
2019-10-23 16:07:59 -04:00
|
|
|
(when-let (bins (cl-remove-if #'rtags-executable-find
|
|
|
|
(list rtags-rdm-binary-name
|
|
|
|
rtags-rc-binary-name)))
|
|
|
|
(warn! "Couldn't find the rtag client and/or server programs %s. Disabling rtags support"
|
|
|
|
bins)))
|
2018-03-12 13:16:16 -04:00
|
|
|
|
|
|
|
;; irony server
|
2018-05-25 00:46:11 +02:00
|
|
|
(when (require 'irony nil t)
|
|
|
|
(unless (file-directory-p irony-server-install-prefix)
|
|
|
|
(warn! "Irony server isn't installed. Run M-x irony-install-server")))
|
2018-03-12 13:16:16 -04:00
|
|
|
|
2022-08-12 20:29:19 +02:00
|
|
|
(when (modulep! :completion company)
|
2018-03-12 13:16:16 -04:00
|
|
|
;; glslangValidator
|
|
|
|
(unless (executable-find "glslangValidator")
|
|
|
|
(warn! "Couldn't find glslangValidator. GLSL code completion is disabled")))
|
2022-08-16 08:17:51 +01:00
|
|
|
|
|
|
|
(when (modulep! :editor format)
|
|
|
|
(unless (executable-find "clang-format")
|
|
|
|
(warn! "Couldn't find clang-format. Formatting will be disabled.")))
|