 ;; Author: Dan Harms <danielrharms@gmail.com>
 ;; Created: Saturday, February 28, 2015
 ;; Version: 1.0
-;; Modified Time-stamp: <2016-05-12 17:04:46 dharms>
+;; Modified Time-stamp: <2016-05-13 17:14:29 dharms>
 ;; Keywords:
 
 ;; This program is free software; you can redistribute it and/or modify

(defun profile-set-include-files ()
  "Set useful include file settings for use in programming modes,
according to the current profile."
    (profile-current-put 'include-files
                         (profile-collect-include-files
                          (profile-current-get 'ctags-alist)))
    (profile-current-put 'include-ff-files
                         ;; ff-search-directories doesn't need a trailing
                         ;; slash
                         (mapcar 'directory-file-name
                                 (profile-collect-include-files
                                  (profile-current-get 'ctags-alist) t)))
    )

;;;###autoload
(defun profile-collect-grep-dirs ()

            (mapcar (lambda(x) (concat "-I" (expand-file-name x)))
                    (profile-current-get 'include-files))
            (list `,(concat "-I"
                            (profile-current-get 'remote-prefix)
                            (directory-file-name
                             (expand-file-name
                              (profile-current-get 'project-root-dir)))))
            (profile-current-get 'compiler-include-dirs)
            )))
    ;; set flycheck for c++
