From: Ondřej Surý Date: Wed, 7 Aug 2019 08:12:25 +0000 (+0200) Subject: Update the flycheck configuration for gcc and cppcheck X-Git-Tag: v9.15.3~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d883aab05f1d432cd3691d23b4744bd9151545f3;p=thirdparty%2Fbind9.git Update the flycheck configuration for gcc and cppcheck --- diff --git a/.dir-locals.el b/.dir-locals.el index dcfce209ace..4d29787c6d0 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -61,6 +61,7 @@ (eval setq flycheck-clang-include-path include-directories) (eval setq flycheck-cppcheck-include-path include-directories) + (eval setq flycheck-gcc-include-path include-directories) (eval setq flycheck-clang-args (list "-include" @@ -68,5 +69,20 @@ (concat directory-of-current-dir-locals-file "config.h")) ) ) + (eval setq flycheck-gcc-args + (list + "-include" + (expand-file-name + (concat directory-of-current-dir-locals-file "config.h")) + ) + ) + (eval setq flycheck-cppcheck-args + (list + "--enable=all" + "--suppress=missingIncludeSystem" + (concat "-include=" (expand-file-name + (concat directory-of-current-dir-locals-file "config.h"))) + ) + ) ) ))