summaryrefslogtreecommitdiff
path: root/.dir-locals.el
blob: b834c07f7a69259789293286e97b4b64ccf59bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;;; Directory Local Variables         -*- no-byte-compile: t; -*-
;;; For more information see (info "(emacs) Directory Variables")

((c++-mode . ((eval
               .
               (let ((project-path
                      (locate-dominating-file default-directory ".dir-locals.el")))
                 (setq-local flycheck-clangcheck-build-path
                             (concat project-path "build"))
                 (setq-local flycheck-clang-language-standard "c++23")
                 (setq-local flycheck-cppcheck-standards '("c++23"))
                 (setq-local flycheck-clang-definitions '("HAVE_CONFIG_H"))
                 (setq-local flycheck-clang-include-path '("../src" "../build")))))))