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")) + ) + ) ) ))