summaryrefslogtreecommitdiff
path: root/.dir-locals.el
blob: 224840b40f15db2a80b4adb4d73630ac8e9d1b1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
;;; 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-clang-definitions '("HAVE_CONFIG_H"))
                 (setq-local flycheck-clang-include-path '("../src" "../build")))))))