diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 07:24:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 07:24:22 +0000 |
commit | 45d6379135504814ab723b57f0eb8be23393a51d (patch) | |
tree | d4f2ec4acca824a8446387a758b0ce4238a4dffa /.dir-locals.el | |
parent | Initial commit. (diff) | |
download | bind9-45d6379135504814ab723b57f0eb8be23393a51d.tar.xz bind9-45d6379135504814ab723b57f0eb8be23393a51d.zip |
Adding upstream version 1:9.16.44.upstream/1%9.16.44
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.dir-locals.el')
-rw-r--r-- | .dir-locals.el | 120 |
1 files changed, 120 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..1fe69da --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,120 @@ +;;; Directory Local Variables +;;; For more information see (info "(emacs) Directory Variables") + +((c-mode . + ((eval . + (set (make-local-variable 'directory-of-current-dir-locals-file) + (file-name-directory (locate-dominating-file default-directory ".dir-locals.el")) + ) + ) + (eval . + (set (make-local-variable 'include-directories) + (list + + ;; top directory + (expand-file-name + (concat directory-of-current-dir-locals-file "./")) + + ;; libisc + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/isc/unix/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/isc/pthreads/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/isc/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/isc")) + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/isc/netmgr")) + + ;; libdns + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/dns/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/dns")) + + ;; libisccc + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/isccc/include")) + + ;; libisccfg + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/isccfg/include")) + + ;; libns + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/ns/include")) + + ;; libirs + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/irs/include")) + + ;; libbind9 + (expand-file-name + (concat directory-of-current-dir-locals-file "lib/bind9/include")) + + ;; bin + (expand-file-name + (concat directory-of-current-dir-locals-file "bin/check")) + (expand-file-name + (concat directory-of-current-dir-locals-file "bin/confgen/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "bin/confgen")) + (expand-file-name + (concat directory-of-current-dir-locals-file "bin/confgen/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "bin/dig/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "bin/named/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "bin/named/unix/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "bin/rndc/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "bin/dnssec/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "bin/named/include")) + (expand-file-name + (concat directory-of-current-dir-locals-file "bin/rndc/include")) + + (expand-file-name "/usr/include/libxml2") + (expand-file-name "/usr/include/json-c") + + (expand-file-name "/usr/local/opt/openssl@1.1/include") + (expand-file-name "/usr/local/opt/libxml2/include/libxml2") + (expand-file-name "/usr/local/opt/json-c/include/json-c/") + (expand-file-name "/usr/local/include") + ) + ) + ) + + (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" + (expand-file-name + (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" + "--suppress=nullPointerRedundantCheck" + (concat "--suppressions-list=" (expand-file-name + (concat directory-of-current-dir-locals-file "util/suppressions.txt"))) + (concat "-include=" (expand-file-name + (concat directory-of-current-dir-locals-file "config.h"))) + ) + ) + ) + )) |