]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Update the flycheck configuration for gcc and cppcheck
authorOndřej Surý <ondrej@sury.org>
Wed, 7 Aug 2019 08:12:25 +0000 (10:12 +0200)
committerOndřej Surý <ondrej@sury.org>
Wed, 7 Aug 2019 08:12:25 +0000 (10:12 +0200)
.dir-locals.el

index dcfce209ace6517084d949aed1eea2d33175c58e..4d29787c6d0fe58895306a58d43a41f44d5a861e 100644 (file)
@@ -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"
           (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")))
+         )
+        )
    )
   ))