From 7d05ae8b1dad1c293a722ef24b29b91146dafbb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Thu, 2 May 2019 10:52:08 +0200 Subject: [PATCH] Adjust .dir-locals.el to make clang always include config.h --- .dir-locals.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.dir-locals.el b/.dir-locals.el index 4141681953..c68180fee7 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -60,5 +60,12 @@ (eval setq flycheck-clang-include-path include-directories) (eval setq flycheck-cppcheck-include-path include-directories) + (eval setq flycheck-clang-args + (list + "-include" + (expand-file-name + (concat directory-of-current-dir-locals-file "config.h")) + ) + ) ) ))