featurep! will be renamed modulep! in the future, so it's been deprecated. They have identical interfaces, and can be replaced without issue. featurep! was never quite the right name for this macro. It implied that it had some connection to featurep, which it doesn't (only that it was similar in purpose; still, Doom modules are not features). To undo such implications and be consistent with its namespace (and since we're heading into a storm of breaking changes with the v3 release anyway), now was the best opportunity to begin the transition.
28 lines
1 KiB
EmacsLisp
28 lines
1 KiB
EmacsLisp
;; -*- lexical-binding: t; no-byte-compile: t; -*-
|
|
;;; lang/cc/doctor.el
|
|
|
|
(assert! (or (not (modulep! +lsp))
|
|
(modulep! :tools lsp))
|
|
"This module requires (:tools lsp)")
|
|
|
|
(assert! (or (not (modulep! +tree-sitter))
|
|
(modulep! :tools tree-sitter))
|
|
"This module requires (:tools tree-sitter)")
|
|
|
|
(when (require 'rtags nil t)
|
|
;; rtags
|
|
(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)))
|
|
|
|
;; irony server
|
|
(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")))
|
|
|
|
(when (modulep! :completion company)
|
|
;; glslangValidator
|
|
(unless (executable-find "glslangValidator")
|
|
(warn! "Couldn't find glslangValidator. GLSL code completion is disabled")))
|