aboutsummaryrefslogtreecommitdiffstats
path: root/.dir-locals.el
diff options
context:
space:
mode:
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el33
1 files changed, 14 insertions, 19 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
index 7f49a89d..40c788b1 100644
--- a/.dir-locals.el
+++ b/.dir-locals.el
@@ -1,19 +1,14 @@
-((nil . ((company-clang-arguments . ("-I../include/YAGE/"
- "-I../../include/YAGE/"
- "-I../../../include/YAGE/"
- "-I/usr/include/"
- "-I/usr/include/SDL2/"
- "-I../googletest/googletest/include/"))
- (company-c-headers-path-user . ("../include/YAGE/"
- "../../include/YAGE/"
- "../../../include/YAGE/"
- "/usr/include/"
- "/usr/include/SDL2/"
- "../googletest/googletest/include/"))
- (flycheck-clang-include-path . ("../include/YAGE/"
- "../../include/YAGE/"
- "../../../include/YAGE/"
- "/usr/include/"
- "/usr/include/SDL2/"
- "../googletest/googletest/include")))))
-
+((nil . ((eval . (progn
+ (require 'projectile)
+ (setq company-clang-arguments (delete-dups (append
+ company-clang-arguments
+ (list (concat "-I" (projectile-project-root) "include")))))
+ (setq company-clang-arguments (delete-dups (append
+ company-clang-arguments
+ (list (concat "-I" (projectile-project-root) "googletest/googletest/include")))))
+ (setq flycheck-clang-include-path (delete-dups (append
+ flycheck-clang-include-path
+ (list (concat (projectile-project-root) "include")))))
+ (setq flycheck-clang-include-path (delete-dups (append
+ flycheck-clang-include-path
+ (list (concat (projectile-project-root) "googletest/googletest/include"))))))))))