summaryrefslogtreecommitdiff
path: root/.dir-locals.el
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2026-01-02 22:42:31 +0100
committerJoel Klinghed <the_jk@spawned.biz>2026-01-02 22:42:31 +0100
commit6ed8f5151719fbc14ec0ac6d28a346d1f74cf2ca (patch)
treeebe7588e89e1aa2ae5376acf85f3a3a7b2ec7e10 /.dir-locals.el
Initial commitHEADmain
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..36206e4
--- /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-clang-definitions '("HAVE_CONFIG_H"))
+ (setq-local flycheck-clang-include-path '("../src" "../build"
+"/usr/include/librsvg-2.0" "/usr/include/gdk-pixbuf-2.0" "/usr/include/glycin-2" "/usr/include/cairo" "/usr/include/libxml2" "/usr/include/pango-1.0" "/usr/include/libmount" "/usr/include/blkid" "/usr/include/fribidi" "/usr/include/pixman-1" "/usr/include/harfbuzz" "/usr/include/freetype2" "/usr/include/libpng16" "/usr/include/glib-2.0" "/usr/lib/glib-2.0/include" "/usr/include/sysprof-6")))))))