aboutsummaryrefslogtreecommitdiffstats
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-09-02 12:23:28 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-09-02 12:23:28 +0100
commit87311540bde93dc6ebf0aeb8fbac122346a99821 (patch)
treebda1dfea1f387a1358780267d113428f6723015e /.dir-locals.el
parenta992108e5b6383450a147a0a0ef54576dca5bd95 (diff)
downloadYAGE-87311540bde93dc6ebf0aeb8fbac122346a99821.tar.gz
YAGE-87311540bde93dc6ebf0aeb8fbac122346a99821.zip
Fixed includes and standardized them
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"))))))))))