summaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2026-01-12 23:06:20 +0100
committerJoel Klinghed <the_jk@opera.com>2026-01-12 23:06:20 +0100
commitdfeb19b0a83b8ce57d28bf94a4f8d129993d1064 (patch)
treed352908df286058059e306c350d89a07c67049eb /.dir-locals.el
Initial commit
Diffstat (limited to '.dir-locals.el')
-rw-r--r--.dir-locals.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/.dir-locals.el b/.dir-locals.el
new file mode 100644
index 0000000..b834c07
--- /dev/null
+++ b/.dir-locals.el
@@ -0,0 +1,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")))))))