Add ext2 VFS implementation
diff --git a/share/jmk/dir-locals.el b/share/jmk/dir-locals.el
index 2648a7e..14d2bd3 100644
--- a/share/jmk/dir-locals.el
+++ b/share/jmk/dir-locals.el
@@ -1,3 +1,5 @@
((nil . ((eval
- . (setq-local flycheck-clang-args
- (jmk-arguments-for (expand-file-name buffer-file-name)))))))
+ . (setq-local flycheck-clang-include-path
+ (jmk-includes-for (expand-file-name buffer-file-name))
+ flycheck-clang-args
+ (jmk-other-flags-for (expand-file-name buffer-file-name)))))))
diff --git a/share/jmk/jmk-flycheck.el b/share/jmk/jmk-flycheck.el
index 8de4949..a1ab539 100644
--- a/share/jmk/jmk-flycheck.el
+++ b/share/jmk/jmk-flycheck.el
@@ -35,3 +35,11 @@
(message "includes: %s" names)
names))
+(defun jmk-other-flags-for (p)
+ (let* ((args (jmk-arguments-for p))
+ (not-includes (cl-remove-if-not (lambda (arg)
+ (string-prefix-p "-I" arg))
+ args))
+ (stripped (mapcar #'string-trim not-includes)))
+ stripped))
+