-
Notifications
You must be signed in to change notification settings - Fork 1
/
.dir-locals.el
53 lines (50 loc) · 2.56 KB
/
.dir-locals.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((c++-mode . ((eval . (progn
(let
((includes-list
(list
(substitute-in-file-name "$rcsw/include")
(concat
(projectile-project-root)
"include")
"/usr/include/lua5.2")))
(setq flycheck-clang-include-path includes-list)
(add-to-list 'flycheck-clang-args "-fPIC")
(add-to-list 'flycheck-clang-args "-std=c++17")
(add-to-list 'flycheck-clang-args "-std=c++17")
(add-to-list 'flycheck-clang-args "-Wno-pragma-once-outside-header")
(add-to-list 'flycheck-clang-args
(concat "-isystem"
(substitute-in-file-name "$localroot/system/include")))
(add-to-list 'flycheck-clang-definitions "LIBRA_ER=LIBRA_ER_ALL")
(setq flycheck-gcc-include-path includes-list)
(add-to-list 'flycheck-gcc-args "-fPIC")
(add-to-list 'flycheck-gcc-args "-std=c++17")
(add-to-list 'flycheck-gcc-args
(concat "-isystem"
(substitute-in-file-name "$localroot/system/include")))
(add-to-list 'flycheck-gcc-definitions "LIBRA_ER=LIBRA_ER_ALL")
(let
((cc-search-dirs
(list
(concat
(projectile-project-root)
"include/rcppsw/*/*")
(concat
(projectile-project-root)
"src/*/*")
(concat
(projectile-project-root)
"include"))))
(setq cc-search-directories cc-search-dirs))))))
)
(nil . ((eval .
(progn
(add-to-list 'projectile-globally-ignored-directories
"docs/doxyoutput")
)
))
)
)
;;; end of .dir-locals.el