;; -*- no-byte-compile: t; -*-
;;; lang/cc/packages.el

(package! cmake-mode :recipe (:host github :repo "emacsmirror/cmake-mode" :files (:defaults "*")))
(package! cuda-mode)
(package! demangle-mode)
(package! disaster)
(package! modern-cpp-font-lock)
(package! opencl-mode)

(when (package! glsl-mode)
  (when (featurep! :completion company)
    (package! company-glsl :recipe (:host github :repo "Kaali/company-glsl"))))

(if (featurep! +lsp)
    (package! ccls)
  (when (package! irony)
    (package! irony-eldoc)
    (when (featurep! :tools flycheck)
      (package! flycheck-irony))
    (when (featurep! :completion company)
      (package! company-irony)
      (package! company-irony-c-headers)))
  (when (package! rtags)
    (when (featurep! :completion ivy)
      (package! ivy-rtags))
    (when (featurep! :completion helm)
      (package! helm-rtags))))
