From 87311540bde93dc6ebf0aeb8fbac122346a99821 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sat, 2 Sep 2017 12:23:28 +0100 Subject: Fixed includes and standardized them --- .dir-locals.el | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to '.dir-locals.el') 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")))))))))) -- cgit